References
default
Renames and re-exports nthFunctions
nth
- nth<T>(n: number, list: ArrayLike<T>): T
- nth(n: number): <T>(list: ArrayLike<T>) => T
Type parameters
Parameters
n: number
list: ArrayLike<T>
Returns T
Parameters
Returns <T>(list: ArrayLike<T>) => T
- <T>(list: ArrayLike<T>): T
Type parameters
Parameters
Returns T
Returns the nth element of the given array. If n is negative the element at index length + n is returned.