Created
September 12, 2015 13:21
-
-
Save ericcgu/0911e86eb1668f4f2f28 to your computer and use it in GitHub Desktop.
Slasher Flick
This file contains hidden or 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 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