@zodash/last
Gets the last element of array.
Usage
import { last } from '@zodash/last';
last([1, 2, 3]);
// => 3
last([]);
// => undefined
@zodash/last
Gets the last element of array.
import { last } from '@zodash/last';
last([1, 2, 3]);
// => 3
last([]);
// => undefined
npm i @zodash/last
0
0.0.3
MIT
3.57 kB
6