DEV Community

Discussion on: The JavaScript Reduce Method

Collapse
 
tanth1993 profile image
tanth1993

nice explain for Reduce. I usually use it for deduplicating.
one more thing about new Set(). it will work with array of primitive values like [1,2,3,4,5], but not for array of objects like {},{},{},

Collapse
 
sanspanic profile image
Sandra Spanik

Really good point, thanks!