ts-iterable-functions
    Preparing search index...

    Function reverseConst

    • Produces the elements of the source iterable in reverse enumeration order.

      Curried version of _reverse.

      Type Parameters

      • T

        Element type produced by the source iterable.

      Returns (src: Iterable) => Iterable

      A deferred iterable that yields the reversed sequence of src.

      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]