Function suffixes

  • Obtain all possible suffixes.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • n: number = -1

      number of values [-1 ⇒ any]

    Returns T[][]

    [x[0..], x[1..], x[2..], ...] if n<0; [x[-n..]] otherwise

Generated using TypeDoc