Const
Returns first element of an array with optional accessor-based filtering.
Without accessor: returns array[0] or undefined for empty/null arrays. With accessor: returns first element where accessor(element) is defined, or undefined if none found.
Optional
Returns first element of an array with optional accessor-based filtering.
Without accessor: returns array[0] or undefined for empty/null arrays. With accessor: returns first element where accessor(element) is defined, or undefined if none found.