Function take

  • Returns the first n elements of an array

    Type Parameters

    • T

    Parameters

    • arr: T[]

      array to get the first n elements from

    • n: number

      number of elements to get

    Returns T[]

    the first n elements of the array

Generated using TypeDoc