• Gets the last element of array.

    Differences from lodash:

    • no special consideration is given to string-keyed values set on the array

    Contribution to minified bundle size, when it is the only function imported:

    • Lodash: 92 bytes
    • Micro-dash: 57 bytes

    Type Parameters

    • T

    Parameters

    • array: readonly T[]

    Returns T

Generated using TypeDoc