Array.includes is the tool everyone reaches for. Set.has sits one refactor away and is almost never used. I benchmarked both with a real run in Node.js 22, and the gap is not subtle. Full run in this
Real AI-built Node.js projects, tools and workflows.
Real AI-built Node.js projects, tools and workflows. Every experiment is built and load-tested on camera, with the real numbers. Videos: https://www.youtube.com/@ShipStackAI
Markdown supported · ⌘↵ to post
No responses yet.