Produces the elements of the source iterable in reverse enumeration order.
Element type produced by the source iterable.
Source iterable whose elements will be yielded from last to first.
A deferred iterable that yields the reversed sequence of src.
src
const values = [..._reverse([1, 2, 3])];console.log(values); // [3, 2, 1] Copy
const values = [..._reverse([1, 2, 3])];console.log(values); // [3, 2, 1]
or using the curried version:
const values = [ ...pipeInto( [1, 2, 3], reverse() ),];console.log(values); // [3, 2, 1] Copy
const values = [ ...pipeInto( [1, 2, 3], reverse() ),];console.log(values); // [3, 2, 1]
Produces the elements of the source iterable in reverse enumeration order.