@zodash/last
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@zodash/last

Gets the last element of array.

Usage

import { last } from '@zodash/last';

last([1, 2, 3]);
// => 3
 
last([]);
// => undefined

Readme

Keywords

Package Sidebar

Install

npm i @zodash/last

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

3.57 kB

Total Files

6

Last publish

Collaborators

  • uniquecolesmith