@yookue/ts-lang-utils
    Preparing search index...

    Function reverse

    • Reverses the given array

      Type Parameters

      • E

      Parameters

      • Optionalarray: null | E[]

        the arrays to inspect

      • OptionalstartInclusive: number

        the starting index, inclusive

      • OptionalendExclusive: number

        the ending index, exclusive

      Returns undefined | null | E[]

      David Hsing

      reverse(undefined);    // undefined
      reverse(['foo', 'bar']); // ['bar', 'foo']
      reverse(['foo', 'bar'], 0, 1); // ['foo']