nice! you could have also just ran .reduce directly on the spread operators without having to create the 'arr' variable for that good ol' codewards one-liner :P
true > destructuring ? thanks
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
This comment is hidden because it contains spoiler information about the solution
Clever!!!!
you need to take care about empty array
Loading collection data...
nice! you could have also just ran .reduce directly on the spread operators without having to create the 'arr' variable for that good ol' codewards one-liner :P
true > destructuring ?
thanks
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
This comment is hidden because it contains spoiler information about the solution
Clever!!!!
you need to take care about empty array
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution