Skip to content

Instantly share code, notes, and snippets.

@tkheyfets
Last active Apr 8, 2016
Embed
What would you like to do?
Array insert
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