Const
Skips elements from the source iterable while the predicate evaluates to truthy.
Curried version of _skipWhile.
Element type produced by the source iterable.
Predicate receiving each element and its index; truthy results continue skipping.
A deferred iterable that starts yielding once pred first returns falsy.
pred
Error Rethrows any error thrown by pred.
const remaining = [..._skipWhile([1, 3, 5, 2, 4], (value) => value < 4)];console.log(remaining); // [5, 2, 4] Copy
const remaining = [..._skipWhile([1, 3, 5, 2, 4], (value) => value < 4)];console.log(remaining); // [5, 2, 4]
or using the curried version:
const remaining = [ ...pipeInto( [1, 3, 5, 2, 4], skipWhile((value) => value < 4) ),];console.log(remaining); // [5, 2, 4] Copy
const remaining = [ ...pipeInto( [1, 3, 5, 2, 4], skipWhile((value) => value < 4) ),];console.log(remaining); // [5, 2, 4]
Skips elements from the source iterable while the predicate evaluates to truthy.
Curried version of _skipWhile.