About 779,000 results
Open links in new tab
  1. collections - Does Javascript supports Sets? - Stack Overflow

    Dec 27, 2010 · JavaScript do support Set. Here is the link to canIuse website. It is supported by Chrome, Edge, Safari, Firefox, Opera and even IE. To declare set you can use Set() …

  2. arrays - When to use Set in JavaScript - Stack Overflow

    Jul 6, 2017 · For implementation of a Set in general, you can read Set - Implementations on Wikipedia. Implementations described as "general use" typically strive to optimize the …

  3. javascript - Set of sets (of sets...) - Stack Overflow

    May 7, 2016 · In Python, it is possible to have a set of sets by means of frozenset: Now that ECMAScript 6 brings Set object, is there any way in JavaScript to have a set containing other …

  4. Set - JavaScript | MDN - MDN Web Docs

    Apr 2, 2025 · Browser Set -like objects (or "setlike objects") are Web API interfaces that behave in many ways like a Set. Just like Set, elements can be iterated in the same order that they were …

  5. api - Nested Sets in JavaScript - Code Review Stack Exchange

    Aug 19, 2014 · I created a procedural implementation of the nested set model in JavaScript. The use case for this small library was that the front-end(presented as an MVC) needs to traverse …

  6. JavaScript Sets - W3Schools

    A JavaScript Set is a collection of unique values. Each value can only occur once in a Set. The values can be of any type, primitive values or objects.

  7. javascript - Details on JS Set - Stack Overflow

    Nov 10, 2020 · Iterating through set members is always done in insertion order. You can add objects of any type to a Set instance, but two different Date objects will be distinct, no matter …

  8. Javascript Sets - Javascript Cheatsheet

    In JavaScript, you can perform set operations like union, intersection, difference, and symmetric difference using Sets. Here’s how you can do it: The union of two sets is a set of all elements …

  9. Sets in JavaScript — the only explanation you will ever need

    May 16, 2021 · Set objects are collections of values. You can iterate through the elements of a set in insertion order. A value in the Set may only occur once; it is unique in the Set's collection. …

  10. getter setter - Javascript Set:Get Pointless? - Stack Overflow

    Aug 8, 2020 · You have created an object with two methods called get and set. To declare getters/setters, you'll have to choose an arbitrary name, and prefix it with the get and set …

  11. Some results have been removed
Refresh