Mastering Immutable.js
上QQ阅读APP看书,第一时间看更新

Maps

A map is like a JavaScript object. It's a keyed collection, meaning that the same types of keys that you would use with JavaScript objects also work with maps. Immutable.js maps are also like native JavaScript Map instances in that they can use anything as a key—not just strings:

import { Map } from 'immutable';
const myMap = Map();
console.log('Map', myMap instanceof Map);
// -> Map true