interface Nth { (n: number, list: ArrayLike): T | undefined; (n: number): (list: ArrayLike) => T | undefined; } /** * Returns the nth element of the given array. If n is negative the * element at index length + n is returned. * * @param {Number} index * @param {*} arr * @return {*} * @example * * var list = ['foo', 'bar', 'baz', 'quux']; * nth(1, list); //=> 'bar' * nth(2, list); //=> 'baz' * nth(-1, list); //=> 'quux' * nth(-99, list); //=> undefined */ declare const _default: Nth; export default _default;