Returns the first element of an array

  • Type Parameters

    • T

    Parameters

    • xs: T[]

      The array

    • ...args: unknown[]

    Returns T

    First element or undefined