Function arrayLastOptional

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

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to extract the last element from.

    Returns Optional<T>

    the last element as an optional.

Generated using TypeDoc