1.0.0 • Published 9 years ago

immutable-to-js-in v1.0.0

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

immutable-to-js-in Build Status

toJSIn method for immutable.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