1.0.0 • Published 9 years ago
immutable-to-js-in v1.0.0
immutable-to-js-in
toJSIn
method forimmutable.Iterable
Install
$ npm install --save immutable-to-js-in
Usage
var toJSIn = require('immutable-to-js-in')
var Map = require('immutable').Map
var map = new Map({foo: 'bar'})
toJSIn(map, ['foo']) // => bar
API
toJSIn(map, keyPath)
-> Any
map
Required
Type: string
The Map to serialize.
keyPath
Required
Type: Array
/ Iterable
The key path to serialize.
License
MIT © Ben Drucker
1.0.0
9 years ago