---
title: "Discussion on \"Array Flatten in JavaScript\" | Hashnode"
description: "Discussion on \"Array Flatten in JavaScript\". What nested arrays are\nA nested array is an array inside another array.\n👉 In simple words:\n\nAn array that contains other arrays as its elements.\n\n\nExample\nlet arr = [1, 2, [3, 4], 5];\n\nHere:\n\n1, 2, 5"
url: "https://hashnode.com/posts/array-flatten-in-javascript/69c033c2d9da55a9a5c6810b"
---

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

Discussion

# [Array Flatten in JavaScript](https://hitakshi120.hashnode.dev/array-flatten-in-javascript?utm_source=hashnode&utm_medium=feed)

What nested arrays are A nested array is an array inside another array. 👉 In simple words: An array that contains other arrays as its elements. Example let arr = \[1, 2, \[3, 4\], 5\]; Here: 1, 2, 5

Mar 22 · 8 min read · hitakshi120.hashnode.dev  
Read the article

-   [#array](https://hashnode.com/tag/array)
-   [#array-in-javascript](https://hashnode.com/tag/array-in-javascript)
-   [#array-flatten-in-javascript](https://hashnode.com/tag/array-flatten-in-javascript)
-   [#chaicode-webdev-cohort-2026](https://hashnode.com/tag/chaicode-webdev-cohort-2026)

## Written by

[Hitakshi](https://hashnode.com/@hitakshi)

@hitakshi

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
