Created
January 30, 2014 07:46
-
-
Save n9986/8704228 to your computer and use it in GitHub Desktop.
A good way to slice arguments passed to a method and make them array like
This file contains 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
var args = Array.prototype.slice.call(arguments); | |
args.splice(0, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment