Skip to content

Instantly share code, notes, and snippets.

@ericcgu
Created September 12, 2015 13:21
Show Gist options
  • Save ericcgu/0911e86eb1668f4f2f28 to your computer and use it in GitHub Desktop.
Save ericcgu/0911e86eb1668f4f2f28 to your computer and use it in GitHub Desktop.
Slasher Flick
function slasher(arr, howMany) {
var x = arr.splice(howMany, arr.length)
return x;
}
slasher([1, 2, 3], 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment