DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js convert array of array to array
const arrInArr = [[1], [2, 3]]; const result = arrInArr.flat() console.log(result); // [1, 2, 3]
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#js
#convert
#array
#array
#array
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit