Skip to content

Instantly share code, notes, and snippets.

Created December 11, 2015 22:50
Show Gist options
  • Save anonymous/8eaa61b7b2583d34d122 to your computer and use it in GitHub Desktop.
Save anonymous/8eaa61b7b2583d34d122 to your computer and use it in GitHub Desktop.
http://www.freecodecamp.com/kkas 's solution for Bonfire: Slasher Flick
// Bonfire: Slasher Flick
// Author: @kkas
// Challenge: http://www.freecodecamp.com/challenges/bonfire-slasher-flick
// Learn to Code at Free Code Camp (www.freecodecamp.com)
function slasher(arr, howMany) {
// it doesn't always pay to be first
return arr.slice(howMany);
}
slasher([1, 2, 3], 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment