Determines whether all the members of this iterator satisfy the specified test.
A function that accepts up to two arguments. The every method calls the predicate function for each element in this iterator until the predicate returns false, or until the end of this iterator.
Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
Creates an iterator whose values are those from this iterator for which the provided predicate returns true.
Returns the value of the first element in this iterator where predicate is true, and undefined otherwise.
Creates an iterator whose values are the result of applying the callback to the values from this iterator and then flattening the resulting iterators or iterables.
Rest
...__namedParameters: [] | [unknown]Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Calls the specified callback function for all the elements in this iterator. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to three arguments. The reduce method calls the callbackfn function one time for each element in the iterator.
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of a value from the iterator.
Optional
returnOptional
value: undefinedDetermines whether the specified callback function returns true for any element of this iterator.
A function that accepts up to two arguments. The some method calls the predicate function for each element in this iterator until the predicate returns a value true, or until the end of the iterator.
Optional
throwOptional
e: any
Creates an iterator whose values are the values from this iterator after skipping the provided count.