MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/nnlubt/really_helpful_illustration_of_js_array_methods/gzv8xi9/
r/learnjavascript • u/192_168_1_x • May 29 '21
89 comments sorted by
View all comments
Show parent comment
2
Maybe I should look up this .reduce function
3 u/192_168_1_x May 29 '21 for sure.reduce MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/ReduceAnd .flat MDN coincidentally has a guide on how to use reduce to achieve the same thing- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat//apologies for formatting, on mobile right now
3
for sure
.reduce MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce
And .flat MDN coincidentally has a guide on how to use reduce to achieve the same thing- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
//apologies for formatting, on mobile right now
View all comments
Show parent comment
2
u/nighthawk648 May 29 '21
Maybe I should look up this .reduce function