Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RevertibleIterable<T>

An iterable which elements order can be reversed.

Arrays implement this interface.

Type parameters

  • T

Hierarchy

Index

Methods

[Symbol.iterator]

  • [Symbol.iterator](): Iterator<T>

reverse

  • reverse(): Iterable<T>
  • Returns an iterable containing this iterable's elements in reverse order.

    Corresponds to Array.prototype.reverse(). Note however, that the array counterpart reverses elements in place rather than creating a new array.

    Returns Iterable<T>

    Reversed iterable instance.

Generated using TypeDoc