---
title: "Discussion on \"Flat And FlatMap  in Javascript\" | Hashnode"
description: "Discussion on \"Flat And FlatMap  in Javascript\". flat  method\nIt returns a new  flattened array .\n\nFor Example Rightwards arrow \nconst array=[ 1,  2,  [ 3, 4,  ] , 5, [  6, 7 ]  ] ;\nconsole.log(  array.flat( ) )\n\nOUTPUT[ 1, 2, 3, 4, 5, 6, 7 ]\nWe Got a brief About Flat method . Lets Explore With An ..."
url: "https://hashnode.com/posts/flat-and-flatmap-in-javascript/61f2959f52c7824742747cbf"
---

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

Discussion

# [Flat And FlatMap in Javascript](https://dev25.hashnode.dev/flat-and-flatmap-in-javascript?utm_source=hashnode&utm_medium=feed)

flat method It returns a new flattened array . For Example Rightwards arrow const array=\[ 1, 2, \[ 3, 4, \] , 5, \[ 6, 7 \] \] ; console.log( array.flat( ) ) OUTPUT\[ 1, 2, 3, 4, 5, 6, 7 \] We Got a brief About Flat method . Lets Explore With An ...

Jan 27, 2022 · 1 min read · dev25.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Dev](https://hashnode.com/@dev47)

@dev47

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
