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.

latest
Source
npmnpm
Version
2.10.19
Version published
Weekly downloads
479
770.91%
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.


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 19 Feb 2022

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