re: Removing duplicates in an Array of Objects in JS with Sets VIEW POST

FULL DISCUSSION
 

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

code of conduct - report abuse