Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@extra-array/last

Package Overview
Dependencies
Maintainers
1
Versions
398
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extra-array/last

Gets last value.

Source
npmnpm
Version
2.1.41
Version published
Weekly downloads
76
-83.44%
Maintainers
1
Weekly downloads
 
Created
Source

Gets last value.

This is part of package extra-array.

array.last(x);
// x: an array
// --> last value
const array = require('extra-array');

array.last([1, 2, 3]);
// 3

array.last([]);
// undefined

references

Keywords

extra

FAQs

Package last updated on 15 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts