Last active
August 29, 2015 14:15
-
-
Save shaggybb/7cc3ce8226065e6442a0 to your computer and use it in GitHub Desktop.
Add array inside another one in specific position
This file contains 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
if (!Array.prototype.spliceArray) { | |
Array.prototype.spliceArray = function(index, n, array) { | |
return Array.prototype.splice.apply(this, [index, n].concat(array)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment