---
title: "Discussion on \"Your JavaScript Array is a Hash Map in Disguise\" | Hashnode"
description: "Discussion on \"Your JavaScript Array is a Hash Map in Disguise\". Ever wondered why typeof [] is object? Learn how V8 optimizes arrays and why certain patterns force a fallback to slow hash map lookups."
url: "https://hashnode.com/posts/your-javascript-array-is-a-hash-map-in-disguise/69c7c3d07cf27065100fbfed"
---

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

Discussion

# [Your JavaScript Array is a Hash Map in Disguise](https://doogal.dev/your-javascript-array-is-a-hash-map-in-disguise?utm_source=hashnode&utm_medium=feed)

Ever wondered why typeof \[\] is object? Learn how V8 optimizes arrays and why certain patterns force a fallback to slow hash map lookups.

Mar 28 · 5 min read · doogal.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#v8engine](https://hashnode.com/tag/v8engine)
-   [#webdevelopment](https://hashnode.com/tag/webdevelopment)
-   [#performanceoptimization](https://hashnode.com/tag/performanceoptimization)
-   [#softwareengineering](https://hashnode.com/tag/softwareengineering)

## Written by

[Doogal Simpson](https://hashnode.com/@doogal)

@doogal

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

"hey doogal, what is .... ?"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
