Last active
April 8, 2016 13:50
-
-
Save tkheyfets/83734be7476c32da38de to your computer and use it in GitHub Desktop.
Array insert
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
function insert(item, index, array) { | |
array.splice(index, 0, item); | |
return array; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment