0.0.3 • Published 3 years ago
@zodash/nth v0.0.3
@zodash/nth
Gets the element at index n of array. If n is negative, the nth element from the end is returned.
Usage
import { nth } from '@zodash/nth';
nth([1, 2, 3]);
// => 1
nth([]);
// => undefined