A utility belt for Immutable.JS
See the documentation.
import _ from 'immutable-lodash'
import { Map, List } from 'immutable'
var france = Map({ 'paris': 1, 'lyon': '2', 'nantes': 3 })
_.pick(france, ['paris', 'nantes'])
// => Map { 'paris': 1, 'nantes': 3 }
_.intersection(List([2, 1]), List([2, 3]))
// => Seq [2]
_.shuffle(List([1, 2, 3, 4]))
// => List [4, 1, 3, 2]
Lodash (a utility belt on top of JavaScript's default collections) is the most popular npm package:
And so I felt Immutable.js, the most popular alternative collections library, deserved its own too!
Major credits to John-David Dalton and Lee Byron, and all contributors for their impeccable work on lodash & Immutable.JS. Both are incredible pieces of art & API design that I was able to learn a lot from.