14 thoughts on “Create an array with unique items.

  1. Uche Eke definitely. It’s more about succinctness in es2015 syntax. An important property of this approach is that item order is preserved. Also true in Array.from(new Set(arr)).

    Like

  2. Stanislav Sinyagin: I’m pretty sure there was once a kludge to marry Perl to browsers. It was called “PerlScript”, and it was in some way related to “VBScript”. I have forgotten what the relation was.

    Like

  3. John Hardy Turnbull delenda est: Once upon a time, I managed code reuse with “frames” and built dynamic user interfaces with “layers”. Apparently, both of these bleeding-edge inventions have become obsolete already.

    Like

  4. Yes layers died years ago (I hate to break it to you but Netscape navigator is dead too). CSS grew powerful enough to tackle all those use cases. Iframes are still in use.

    Like

Leave a reply to Stanislav Sinyagin Cancel reply