Returns the last item in an array, or the fallback if list is null or undefined.
list
last(99)([3, 6, 9])// => 9last(99)(undefined)// => 99 Copy
last(99)([3, 6, 9])// => 9last(99)(undefined)// => 99
Generated using TypeDoc
Returns the last item in an array, or the fallback if
list
is null or undefined.