immutable-array-methods
Immutable versions of normally mutable array methods, such as pop(), push(), splice()
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install immutable-array-methods --save
Usage
var methods = ; var input = 1 2 3;var result = methods;console;console;console; result = methods;console;console;console; // num() doesnt' return a new array if the values are unchangedresult = methods; result = methods;console;console;console; // also available is .push(), .shift(), .unshift(), .set()
Tests
npm installnpm test
Dependencies
None
Dev Dependencies
- ava: Testing can be a drag. AVA helps you get it done.
- package-json-to-readme: Generate a README.md from package.json contents
- ts-node: TypeScript execution environment and REPL for node.js, with source map support
- type-fest: A collection of essential TypeScript types
- typescript: TypeScript is a language for application scale JavaScript development
License
MIT
Generated by package-json-to-readme