---
title: "Discussion on \"Array Includes or Set Has: Which Is Faster?\" | Hashnode"
description: "Discussion on \"Array Includes or Set Has: Which Is Faster?\". 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"
url: "https://hashnode.com/posts/array-includes-or-set-has-which-is-faster/6b1235a535f320d5f4168702"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Array Includes or Set Has: Which Is Faster?](https://shipstackai.hashnode.dev/array-includes-or-set-has-which-is-faster?utm_source=hashnode&utm_medium=feed)

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

17h ago · 2 min read · shipstackai.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#node](https://hashnode.com/tag/node)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#ai](https://hashnode.com/tag/ai)

## Written by

[Ship Stack](https://hashnode.com/@shipstackai)

@shipstackai

  
[View profile](https://hashnode.com/@shipstackai)

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
