Skip to content

Instantly share code, notes, and snippets.

@mtroiani
Created December 12, 2015 03:43
Show Gist options
  • Save mtroiani/1588076e75b4ec1d796b to your computer and use it in GitHub Desktop.
Save mtroiani/1588076e75b4ec1d796b to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/mtroiani 's solution for Bonfire: Slasher Flick
// Bonfire: Slasher flick
// Author: @mtroiani
// Challenge: http://www.freecodecamp.com/challenges/bonfire-slasher-flick
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function slasher(arr, howMany) {
return arr.splice(howMany, arr.length);
}
slasher([1, 2, 3], 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment