JS Set & Map Lab - Interactive Lab | IconVault

Run ES2025 Set operations with live Venn diagrams: union, intersection, difference, symmetric difference, subset checks. Plus a Map playground.

All tools

JS Set & Map Lab

ES2025 set operations with live Venn diagrams

5 of 5 free uses left

a.intersection(b)

Only in both A and B

=> [3, 4]

AB
A only: [1, 2]Both: [3, 4]B only: [5, 6]
const a = new Set([1, 2, 3, 4]);
const b = new Set([3, 4, 5, 6]);
const result = a.intersection(b);
// [3, 4]

5 of 5 free experiments left. Runs fully in your browser.

About this tool

IconVault's JS Set & Map Lab makes the ES2025 Set methods click visually. Type two sets and pick an operation: union, intersection, difference, symmetricDifference, isSubsetOf, isSupersetOf or isDisjointFrom. The matching region lights up on a live Venn diagram while the real computed result appears beside it, using the native methods when your browser supports them and an honest manual fallback otherwise. It is free and runs fully in your browser, with copyable code for every operation.

A second tab is a hands-on Map playground: add, look up and delete entries live, watch size update, and see iteration order in action. Side notes explain when to reach for WeakMap and WeakSet instead, so you leave knowing not just the API but which collection fits each job.

Frequently asked questions

Popular searches

javascript set operationsset union intersection javascriptes2025 set methodssymmetric difference javascriptissubsetof javascriptjavascript map tutorialset vs array javascriptweakmap vs mapvenn diagram javascriptjavascript set methods listhow to use set in jsmap get set delete javascriptjavascript set differenceunion of two sets jsintersection of arrays as setsjavascript set hasiterate map javascriptjavascript set union methodset intersection method jsdifference of two sets javascriptjavascript set symmetricdifferenceisdisjointfrom javascriptissupersetof javascriptnew set methods javascript 2025javascript set examplewhen to use set javascriptjavascript unique values setarray to set javascriptset to array javascriptjavascript set foreachmap vs object javascriptjavascript map methodsweakset javascriptjavascript collection typeses6 set map tutorialjavascript set add deletecheck subset javascriptdisjoint sets javascriptset algebra javascriptjavascript set interview questionsmap iteration order javascriptobject keys as mapjavascript dictionary maphashmap javascriptjavascript set performanceunique array javascript setremove duplicates js setjavascript set sizemap has method javascriptjavascript weakmap exampleset of objects javascriptjavascript set equalitycompare two sets javascript

More tools

Coming soon

CLI

Coming soon

Figma plugin

Coming soon

VS Code extension

Coming soon

Chrome extension

Coming soon

AI icon generator

Coming soon

Team workspaces

Coming soon

View all 10+ tools →