> While that's true you could implement one that way, it's very nice to have the set operations implemented
Unrelated, but does anyone know why the new JavaScript set implementation is so limited? Why didn't they bother doing this right?
Unrelated, but does anyone know why the new JavaScript set implementation is so limited? Why didn't they bother doing this right?
You can implement most basic functionality easily enough, MDN even has an example [0]. Although I agree that it should really be part of the language.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...