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.
Operation 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]
Skips elements from the source while the predicate returns
true
.