Skip to Content

firstObject()

Returns the first element of an array.

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

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

Example

const first = ARM.firstObject(addresses)
Last updated on