上QQ阅读APP看书,第一时间看更新
Ordered maps
An ordered map is just like a map except that the order in which items are added is preserved. This type of map behaves like a list, only instead of looking up values using numerical indexes, you can use any key you like:
import { OrderedMap } from 'immutable';
const myOrderedMap = OrderedMap();
console.log('OrderedMap', myOrderedMap instanceof OrderedMap);
// -> OrderedMap true