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.
JS Set & Map Lab
ES2025 set operations with live Venn diagrams
a.intersection(b)
Only in both A and B
=> [3, 4]
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
More tools
Algorithm Visualizer
Watch sorting and searching animate step by step
Alt Text Helper
Write better image alt text with live feedback
ARIA Reference
Searchable ARIA roles and attributes guide
Array Visualizer
Step through map, filter, reduce like a debugger
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