---
title: "Discussion on \"Javascript Array.flat\" | Hashnode"
description: "Discussion on \"Javascript Array.flat\". We will discuss Polyfill for Array.flat().\nAbout\nArray.flat is a function that will take depth as a parameter and return new array of concatenated arrays till depth.\nconst array = [1,3,4,5,[2,3,4,[5,67]], [1,2,3]]\nconsole.log(array.flat())\n// [ 1, 3,..."
url: "https://hashnode.com/posts/javascript-arrayflat/64f4b86afd025891028f8294"
---

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

Discussion

# [Javascript Array.flat](https://rajanlagah.hashnode.dev/javascript-arrayflat?utm_source=hashnode&utm_medium=feed)

We will discuss Polyfill for Array.flat(). About Array.flat is a function that will take depth as a parameter and return new array of concatenated arrays till depth. const array = \[1,3,4,5,\[2,3,4,\[5,67\]\], \[1,2,3\]\] console.log(array.flat()) // \[ 1, 3,...

Sep 3, 2023 · 2 min read · rajanlagah.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#polyfills](https://hashnode.com/tag/polyfills)
-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)

## Written by

[Rajan Lagah](https://hashnode.com/@rajanlagah)

@rajanlagah

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

👨‍💻 Code Crafts and Tech Tales: My Journey Unfolded on Hashnode.

👨‍💻🖥️ Crafting code wizardry for 5 years and counting. Experienced programmer determined to transform code into innovation.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
