first_.first(array, [n])
Alias: head, take
Returns the first element of an array. Passing n will return the first n elements of the array.
_.first([5, 4, 3, 2, 1]); => 5
first_.first(array, [n])
Alias: head, take
Returns the first element of an array. Passing n will return the first n elements of the array.
_.first([5, 4, 3, 2, 1]); => 5
Please login to continue.