---
title: "Discussion on \"Array Flatten in JavaScript\" | Hashnode"
description: "Discussion on \"Array Flatten in JavaScript\". What nested arrays are\nArray inside array is called nested array.\nWhy flattening arrays is useful\nOne of the usecase is that we want all users post in single array to display it.\nconst users = [\n  { n"
url: "https://hashnode.com/posts/array-flatten/69fb86f050ecad453360015b"
---

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

Discussion

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

What nested arrays are Array inside array is called nested array. Why flattening arrays is useful One of the usecase is that we want all users post in single array to display it. const users = \[ { n

May 6 · 1 min read · javascript-kartik.hashnode.dev  
Read the article

## Written by

[Kartik Kumar](https://hashnode.com/@kartik210)

@kartik210

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

Grinding the Thoughts

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
