pareto.js
A small trully functional utility library that only has what you really need.
Advantages
-
Lightweight
-
Functional
- Only pure functions
- No side-effects
- Encourages immutability
- Auto-curried methods
-
Better and smaller API
-
Made with the newest stuff:
- ES6
- Babel
- Webpack
Installation
To install the stable version:
npm install --save paretojs
This assumes that you’re using npm with a module bundler like Webpack
How
Import pareto.js:
import _ from 'paretojs'
And use it:
const myArray = [1, 2, 3]
const newArray = _.remove(myArray, 2)
console.log(newArray) // [1, 2]