• Get the last item from an array. Returns undefined, if the array is empty.

    Returns

    Last item of the array or undefined, if the array was empty.

    Type Parameters

    • T

    Parameters

    • arr: T[]

      Array to get the last item of.

    Returns T | undefined

Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.