Function arrayFirstOptional

  • Extracts the first element from the given array as an optional.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to extract the first element from.

    Returns Optional<T>

    the first element as an optional.

Generated using TypeDoc