nth()

Gets the value at the specified position in an array or an array-like object.

This function is valid in v2.0.0 to v2.1.0. This function has been downloaded 2 times.

Parameters

{Array|Arguments|Object} arr
Array or array-like object from which to pull the value.
{number} n
The position from which the value should be pulled. If this is a negative number the position will be calculated from the end of arr.

Returns

{*}
Value at position n.