Checks whether the sequence has no elements.
Sequence.isEmpty = function() { /*...*/ }
Sequence.isEmpty = function isEmpty() { return !this.any(); }
Name | Type(s) | Description |
---|---|---|
returns | boolean | True if the sequence is empty, false if it contains at least one element. |
Lazy([]).isEmpty() // => true Lazy([1, 2, 3]).isEmpty() // => false