Function take

  • Keep first n values only.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • n: number = 1

      number of values [1]

    Returns T[]

    x[0..n]

Generated using TypeDoc