@dnvr/array-methods
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

Array Methods

A JavaScript library of Array methods.

Better usage instructions to come.

Install

npm install @dnvr/array-methods

Usage

import {

  push,
  shift

} from '@dnvr/array-methods'

let arr = [ 1, 2, 3 ]

// Following turns arr to [ 1, 2, 3, 4, 5, 6 ]
push( arr, 4, 5, 6 )

// Following returns 1 and arr becomes [ 2, 3, 4, 5, 6 ]
shift( arr )

/@dnvr/array-methods/

    Package Sidebar

    Install

    npm i @dnvr/array-methods

    Weekly Downloads

    11

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    34.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • dnvr