Open
Description
Describe the Bug
In javascript you can all set()
to create a new empty set.
However for some reason in js_sys the set's new
function takes an initializer. This is completely different from how array works, where new takes no arguments and just returns an empty array.
Steps to Reproduce
Try and create a function that returns an empty set.
You need to initialize the set with a dummy object, then call clear() which is very silly.
Expected Behavior
You're not required to initialize new sets with a dummy value then call clear.
Actual Behavior
You have to create a set with a single value, then call clear().