Lambda saysmap transforms, filter selects, reduce accumulates — the trio of functional array methods.
map returns a new array with each item transformed; filter returns the items that pass a test; reduce folds the array into a single value (sum, object, anything). All three are non-mutating and chainable, replacing most manual loops with clear, declarative pipelines.
Power-ups you unlock
map: transform each → new array
filter: keep items passing a test
reduce: fold into one value
Non-mutating and chainable
The Mutator attacks — common mistakes
Using map for side effects (use forEach)
Forgetting reduce’s initial value
Not returning from the map/filter callback
Boss battleChain filter then map then reduce: keep evens, double them, sum the result.