DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
flat function javascript
const arr1 = [1, 2, [3, 4]]; arr1.flat(); // [1, 2, 3, 4]
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#flat
#function
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+7 =
Submit