New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc