4.0.0 • Published 7 years ago

starry.reverse v4.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Member of the starry suite—modular functions for iterable objects.

npm node

Status

Applies to the whole suite.

Build Status Coverage Status

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>