🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

array-inmutable

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-inmutable

wrapped array structure which provides inmutable high performance methods

0.1.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

array-inmutable

travis ci npm version Coverage Status Dependency Status

array-inmutable exports a class that builds iterables that provide slice method.

Install

$ npm install array-inmutable --save

Usage

const ArrayInmutable = require('array-inmutable')

const a = ArrayInmutable([1]) // (2)
    .push(2) // (1, 2)
const b = a.push(5)

a.every(e => e < 3) // true
b.every(e => e < 3) // false

a.reduce((x, y) => x * y, 1) // 2 (1 * 2)
a.reduce((x, y) => x * y, 1) // 10 (1 * 2 * 5)

Support

  • Node.js >=6
  • ES2015 transpilers

License

MIT

Keywords

array

FAQs

Package last updated on 07 Dec 2017

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