🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@extra-array/head

Package Overview
Dependencies
Maintainers
1
Versions
387
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extra-array/head

Gets first value.

Source
npmnpm
Version
2.10.14
Version published
Weekly downloads
503
121.59%
Maintainers
1
Weekly downloads
 
Created
Source

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

Similar: head, tail, init, last.

This is part of package extra-array.


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

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

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


References

Keywords

extra

FAQs

Package last updated on 02 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