- start<T>(cb: ((value: T, index: number, state: IterationState) => boolean | Promise<boolean>)): Operation<T, T>
-
Parameters
-
cb: ((value: T, index: number, state: IterationState) => boolean | Promise<boolean>)
-
- (value: T, index: number, state: IterationState): boolean | Promise<boolean>
-
Returns boolean | Promise<boolean>
Deprecated
Use skipUntil instead (
start
will be removed in v3.0.0).Starts emitting values, once the predicate test passes.
Note that the predicate can only return a
Promise
inside an asynchronous pipeline, or else thePromise
will be treated as a truthy value.See