immutable-to-js-in

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i immutable-to-js-in

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bendrucker