---
title: "Discussion on \"flat(1) Isn't Flat: Array Flattening in JavaScript, Step by Step\" | Hashnode"
description: "Discussion on \"flat(1) Isn't Flat: Array Flattening in JavaScript, Step by Step\". Nested arrays, flat(), flatMap, reduce, recursion and a stack, plus how to think through the flatten interview question, with real output"
url: "https://hashnode.com/posts/javascript-array-flatten/6b055db2ba12f45e5297dc11"
---

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

Discussion

# [flat(1) Isn't Flat: Array Flattening in JavaScript, Step by Step](https://jaydeepkanzariya.hashnode.dev/javascript-array-flatten?utm_source=hashnode&utm_medium=feed)

Nested arrays, flat(), flatMap, reduce, recursion and a stack, plus how to think through the flatten interview question, with real output

2h ago · 8 min read · jaydeepkanzariya.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Jaydeep Kanzariya](https://hashnode.com/@jaydeepkanzariya)

@jaydeepkanzariya · India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
