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