DEV Community


Discussion on: How to convert an array into an object in javascript

afewminutesofcode profile image
Aaron Author

Thanks so much for pointing this out Brad! I have used this syntax for one liner map functions but had overlooked using it with reduce before. I am going to make sure I use it in the future, to keep my code more concise.