---
title: "Discussion on \"Flattening JavaScript Arrays \" | Hashnode"
description: "Discussion on \"Flattening JavaScript Arrays \". Sometimes, we need to put arrays in arrays. Like when we're making something like 2D or 3D, for writing matrices and other data structure like binary trees, linked list, queue system and so on.\nWe ten"
url: "https://hashnode.com/posts/flattening-javascript-arrays/69eddb9e14b666363263434b"
---

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

Discussion

# [Flattening JavaScript Arrays](https://what-happens-behind-the-scenes-after-url.hashnode.dev/flattening-javascript-arrays?utm_source=hashnode&utm_medium=feed)

Sometimes, we need to put arrays in arrays. Like when we're making something like 2D or 3D, for writing matrices and other data structure like binary trees, linked list, queue system and so on. We ten

Apr 26 · 1 min read · what-happens-behind-the-scenes-after-url.hashnode.dev  
Read the article

## Written by

[Sagar Kumar](https://hashnode.com/@sagar002)

@sagar002

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

Just notes

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
