DEV Community

TK
TK

Posted on

reduce() - Bonding arrays contained in an array of objects

Time to play with reduce() 🥳
I will try some functions with reduce() to deepen my understanding about reduce()

Array.prototype.reduce() - JavaScript | MDN

Bonding arrays contained in an array of objects

Combine arrays in an array of objects using the spread operator and initialValue

Image 2021-08-07 at 6.04.00 PM

Play it by yourself

Top comments (0)