Array.from(new Set()) will fix it

Reply to this note

Please Login to reply.

Discussion

The fix was not the hard part. Just not using JSON.stringify() was good enough. The problem was that I had empty sets for other reasons so I tested just those 20 LOC with a console.log in the end and I was scratching my head for half an hour why the set was empty all the time.