Function firstElement

Returns the first element of the array.

  • Type Parameters

    • T

    Parameters

    • array: T[]

    Returns T