starry.reverse
v4.0.0
Published
Member of the starry suite—modular functions for iterable objects.
Downloads
4
Maintainers
Readme
Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
Usage
function reverse<T>(
iterable: Iterable<T>
): Iterable<T>
Iterates through the elements of an iterable in reverse order.
Unlike Array.prototype.reverse
, this does not mutate the input argument.
Parameters:
- iterable:
Iterable<T>
Returns: Iterable<T>