github immutable-js/immutable-js 2.2.2

latest releases: v5.0.0-beta.5, v4.3.5, v5.0.0-beta.4...
9 years ago
  • Improved using arbitrary Objects as keys or as members of a Set for IE8.
  • Fixed: collections did not always return correct length iterated from forEach()
  • Sequences (and Maps, Vectors, and Sets) can now be constructed from Iterables and Iterators. This enables Map and Set construction similar to ES6 spec.
var m = new Map([['A', 1], ['B', 2], ['C', 3]]);
// Map {"A" => 1, "B" => 2, "C" => 3}
var im = Immutable.Map(m);
// Map { A: 1, B: 2, C: 3 }
m = new Map(im);
// Map {"A" => 1, "B" => 2, "C" => 3}
  • Fixed: some Sequences did not properly provide themselves as the 3rd argument in iteration.
  • Fixed: take() could iterate one step too far.
  • Fixed: getIn() could throw if one of the intermediate keys does not exist.

Don't miss a new immutable-js release

NewReleases is sending notifications on new releases.