New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@annexe/array.first

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annexe/array.first

A utility function to acquire the first item in an array.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@annexe/first

A utility function to acquire and return the first value in an array.

Installation

To install @annexe/first:

Yarn

yarn add @annexe/first

NPM

npm install @annexe/first

Usage

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

const myArray = [1, 2, 3, 4, 5];

console.log(first<number>(myArray)); // logs 1

Keywords

head

FAQs

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