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

0.1.1 • Public • Published

@annexe/last

A function to get the last element in an array.

Installation

To install @annexe/last:

Yarn

yarn add @annexe/last

NPM

npm install @annexe/last

Usage

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

const myArray = [1, 2, 3, 4, 5];
console.log(last(myArray)); // prints 5

Readme

Keywords

Package Sidebar

Install

npm i @annexe/array.last

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

3.54 kB

Total Files

14

Last publish

Collaborators

  • heyjules