dropWhile
优质
小牛编辑
135浏览
2023-12-01
Creates a new sequence comprising the elements from this sequence after those that satisfy some predicate. The sequence starts with the first element that does not match the predicate.
Signature
Sequence.dropWhile = function(predicate) { /*...*/ }
Sequence.dropWhile = function dropWhile(predicate) { return new DropWhileSequence(this, predicate); }
Name | Type(s) | Description |
---|---|---|
predicate | Function | |
returns | Sequence | The new sequence |