Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

flat function javascript

const arr1 = [1, 2, [3, 4]];
arr1.flat(); 
// [1, 2, 3, 4]
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #flat #function #javascript
ADD COMMENT
Topic
Name
2+4 =