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