Using new Set() in Function node

Thanks @BramKn.
Opened a new topic here: Using standard javascript Set in code node not working

To clarify - the workaround posted by @leprodude works for me as well but creating a new Set instance and working with that does not.