This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
OrderedSet is changing item ordering (@4.0.0-rc.11+) #115
Closed
Description
From @pixmaster on Wed, 12 Dec 2018 15:37:49 GMT
const { OrderedSet, Map } = require('immutable@4.0.0-rc.11')
const i=[2];
OrderedSet([ Map({b:1, a:true}), Map({b:2,a:true}), Map({b:3,a:true}) ])
.map((t) => {
if (i.includes(t.get('b'))) return t.set('a', false);
return t;
})
.toJS()
Copied from original issue: immutable-js#1663