flat( ) method - JavaScript Tutorial

Published: 19 August 2021
on channel: stepUP
5
0

Please Like and Subscribe :(

The flat() method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.

Syntax:
flat()
flat(depth)

Parameters

depth Optional

The depth level specifying how deep a nested array structure should be flattened. Defaults to 1.

Return value

A new array with the sub-array elements concatenated into it.

Browser Compatibility:

ChromeFull support 69

EdgeFull support 79

FirefoxFull support 62

Internet Explorer No support

OperaFull support 56

SafariFull support 12

WebView Android Full support 69

Chrome Android Full support 69

Firefox for Android Full support 62

Opera Android Full support 48

Safari on iOS Full support 12

Samsung Internet Full support 10.0

Node.js Full support 11.0.0

#javascript #javascript_tutorial #javascript_tips_and_tricks


------
search tag
------
javascript
javascript tutorial
css animation
css clip path
flag animation
html
independence day coding
js closure
loading css
number guessing game python
python for beginners
python programming
python vs java
regex in javascript
regex javascript
typescript
typescript react
typescript tutorial


Watch video flat( ) method - JavaScript Tutorial online without registration, duration hours minute second in high quality. This video was added by user stepUP 19 August 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site once and liked it people.