@szilanor/stream
    Preparing search index...

    Variable everyAsyncConst

    everyAsync: <T>(
        predicate: MaybeAsyncPredicateFunction<T>,
    ) => AsyncCollectorFunction<T, boolean> = allAsync

    Type Declaration

      • <T>(
            predicate: MaybeAsyncPredicateFunction<T>,
        ): AsyncCollectorFunction<T, boolean>
      • Returns a collector that returns true if all entries satisfy the 'predicate' function.

        Type Parameters

        • T

          Type of items in the source.

        Parameters

        Returns AsyncCollectorFunction<T, boolean>

        Collector that returns true if all entries satisfy the 'predicate' function.

        const result = allAsync((x) => x > 0)([1, 2, 3]);
        console.log(result); // true