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 {},{},{},
From mental health & arts to software engineer in under a year. Passionate about tech for good. Will inevitably end up writing about how coding makes me feel too…
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 {},{},{},
Really good point, thanks!