Returns an OperationFunction that skips elements from the source while the predicate returns true.
true
Type of items in the source.
Predicate function to determine if an element should be skipped.
An OperationFunction that skips elements from the source while the predicate returns true.
const result = skipWhile<number>((x) => x < 3)([1, 2, 3, 4]);console.log([...result]); // [3, 4] Copy
const result = skipWhile<number>((x) => x < 3)([1, 2, 3, 4]);console.log([...result]); // [3, 4]
Returns an OperationFunction that skips elements from the source while the predicate returns
true.