nth
Gets the element at index n of array. If n is negative, the nth
element from the end is returned.
Since
4.11.0
Arguments
n(number): The index of the element to return.array(Array): The array to query.
Returns
(*): Returns the nth element of array.
Example
var array = ['a', 'b', 'c', 'd'];
_.nth(1, array);
// => 'b'
_.nth(-2, array);
// => 'c';