Javascript set(-of-string) functions


/ Published in: JavaScript
Save to your folder(s)

Exploits hash keys uniqueness, but in doing so effectively toString()s everything, meaning this should not be used for much beyond strings and perhaps integers.

I used this when I wanted to do some client-side filtering of (integer) identifiers.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.