DEV Community

Discussion on: Removing duplicates in an Array of Objects in JS with Sets

Collapse
 
duaneq profile image
DuaneQ

Thanks for the code snippet, Marina...I'm getting to errors when I attempt to use it. The first is "Set is only referred to a type but is being used as a value here"

when I use the "REDUCE" example I get the following in the console:

Maximum call stack size exceeded
at Array.reduce