Last active
July 18, 2018 20:03
-
-
Save luislobo14rap/811136f0b106b1c1b79697a18003546f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mergeArray.js v1.0.1 | |
function mergeArray(arrayA, arrayB) { | |
newArray = []; | |
for (let i = 0; i < arrayA.length; i++) { | |
newArray.push(arrayA[i]); | |
}; | |
for (let i = 0; i < arrayB.length; i++) { | |
newArray.push(arrayB[i]); | |
}; | |
return newArray; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mergeArray.min.js v1.0.1 | |
function mergeArray(a,b){newArray=[];for(let c=0;c<a.length;c++)newArray.push(a[c]);for(let c=0;c<b.length;c++)newArray.push(b[c]);return newArray} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment