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.min

Package Overview
Dependencies
Maintainers
1
Versions
382
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extra-array/last.min

Gets last value.

Source
npmnpm
Version
2.10.17
Version published
Weekly downloads
797
77.51%
Maintainers
1
Weekly downloads
 
Created
Source

Gets last value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Similar: head, tail, init, last.

This is part of package extra-array.

This is browserified, minified version of @extra-array/last.
It is exported as global variable array_last.
CDN: unpkg, jsDelivr.


array.last(x, [vd]);
// x:  an array
// vd: default value
const array = require("extra-array");

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

array.last([], -1);
// -1


References

Keywords

extra

FAQs

Package last updated on 05 Feb 2021

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