Function arrayFirst

  • Extracts the first element from the given array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to extract the first element from.

    Returns undefined | T

    the first element.

Generated using TypeDoc