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