Returns the first (or last) count of items from an array, or the fallback if list is null or undefined.
count
list
take([])(4)([1, 2, 3, 4, 5, 6]);// => [1, 2, 3, 4]take([])(4)(undefined);// => [] Copy
take([])(4)([1, 2, 3, 4, 5, 6]);// => [1, 2, 3, 4]take([])(4)(undefined);// => []
Generated using TypeDoc
Returns the first (or last)
count
of items from an array, or the fallback iflist
is null or undefined.