@annexe/array.first
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i @annexe/array.first

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.53 kB

    Total Files

    14

    Last publish

    Collaborators

    • heyjules