0.0.3 • Published 8 years ago

immutable-lodash v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

A utility belt for Immutable.JS

See the documentation.

Examples

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]

Why immutable-lodash?

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.

Travis build status Dependency Status devDependency Status