DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript merge two sorted arrays
let mergedArr = [...arr1, ...arr2]; return mergedArr.sort((a, b) => a-b);
PREVIOUS
NEXT
Tagged:
#javascript
#merge
#sorted
#arrays
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit