You might have heard of the JavaScript reduce method, it's used to convert to a specific output, which can be a sum, but also an output array or object. The reduce itself is super useful, but the other day I needed it to reduce on multiple properties...

Markdown supported · ⌘↵ to post
No responses yet.