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

Transforming Immutable Data with Reduce

Transforming Immutable Data with Reduce

8:25
Immutable.js iterables offer the reduce() method, a powerful and often misunderstood functional operator on which map(), filter(), groupBy(), etc. are built. The concept is simple: reduce transforms your iterable into something else, that's all. The name is misleading as you may or may not actually "reduce" anything. Let's replicate the groupBy() and filter() methods with reduce to illustrate how it works.
Watch this lesson now
Avatar
egghead.io

Immutable.js iterables offer the reduce() method, a powerful and often misunderstood functional operator on which map(), filter(), groupBy(), etc. are built. The concept is simple: reduce transforms your iterable into something else, that's all. The name is misleading as you may or may not actually "reduce" anything. Let's replicate the groupBy() and filter() methods with reduce to illustrate how it works.

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