4 ms·
Map and set are much nicer in ES6 as built in objects.
by etimberg 11y ago
Map and set are much nicer in ES6 as built in objects.
- btd 11y agoimo map and set useless. Real advantage of maps only that you can use any type of keys, but really why not convenrt them to string represntation and put to simple object? Map .has method uses === for object search. For set the same, just use object with keys and dummy values.