lastObject()
Returns the last element of an array.
Kind: global function
Returns: Object | undefined - The last element, or undefined if the array is empty.
| Param | Type | Default | Description |
|---|---|---|---|
| [objects] | Array.<Object> | [] | The source array. |
Example
const last = ARM.lastObject(addresses)Last updated on