linkedin github twitter

Heyo 👋

An introduction to .map, .filter, .reduce by making a fresh fruit salad (🥗).

Any good fruit salad should be brimming with nice stuff; carefully selected, chopped and mixed into a tasty bowl of goodness.

They're also great for explaining JavaScript's more functional methods, which undoubtedly will be a good addition to your developer skills.

Hungry yet? Good. Let's get chopping with some basic examples.

array.map(x => x.value) array.filter(x => x !== y) array.reduce((a, b) => a + b, c)