Created
October 21, 2012 18:30
-
-
Save ataube/3928006 to your computer and use it in GitHub Desktop.
Dynamically converts function args to an array
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 myFunction = function() { | |
var args = Array.prototype.slice.call(arguments, 0, arguments.length); | |
//do and return something | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment