Set
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
AboutExamplesConstructorPropertiesMethodsStatic Properties JavaScriptconst a = new Set([1, 2, 3]);const b = new Map([[1, "one"],[2, "two"],[4, "four"],]);console.log(a.union(b)); // Set(4) {1, 2, 3, 4}See MoreContent Under CC-BY-SA licenseWas this helpful?
DA: 6 PA: 14 MOZ Rank: 16