Skip to Content

lastObject()

Returns the last element of an array.

Kind: global function
Returns: Object | undefined - The last element, or undefined if the array is empty.

ParamTypeDefaultDescription
[objects]Array.<Object>[]The source array.

Example

const last = ARM.lastObject(addresses)
Last updated on