Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript merge two sorted arrays

let mergedArray = [...arr1, ...arr2];
return mergedArray.sort((a, b) => a-b);
 
PREVIOUS NEXT
Tagged: #javascript #merge #sorted #arrays
ADD COMMENT
Topic
Name
8+8 =