The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Maintaining Order in Immutable.js Objects

Maintaining Order in Immutable.js Objects

8:08
Immutable.js's Map doesn't promise iteration order after a set() operation. When we need a guarantee for iteration order, we can use OrderedMap. This comes at a slight performance cost, or for you computer science people, it is amortized at an unstable O(log32 N). Let's explore ordering.
Watch this lesson now
Avatar
egghead.io

Immutable.js's Map doesn't promise iteration order after a set() operation. When we need a guarantee for iteration order, we can use OrderedMap. This comes at a slight performance cost, or for you computer science people, it is amortized at an unstable O(log32 N). Let's explore ordering.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?