Function lastElement

Returns the last element of the array.

  • Type Parameters

    • T

    Parameters

    • array: T[]

    Returns T