@szilanor/stream
    Preparing search index...

    Variable someAsyncConst

    someAsync: <T>(
        predicate?: MaybeAsyncPredicateFunction<T>,
    ) => AsyncCollectorFunction<T, boolean> = anyAsync

    Type Declaration

      • <T>(
            predicate?: MaybeAsyncPredicateFunction<T>,
        ): AsyncCollectorFunction<T, boolean>
      • Returns a collector that returns true if at least one of the entries satisfies the 'predicate' function.

        Type Parameters

        • T

          Type of items in the source.

        Parameters

        Returns AsyncCollectorFunction<T, boolean>

        Collector that returns true if at least one of the entries satisfies the 'predicate' function.

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