Skip to content

Instantly share code, notes, and snippets.

@ataube
Created October 21, 2012 18:30
Show Gist options
  • Save ataube/3928006 to your computer and use it in GitHub Desktop.
Save ataube/3928006 to your computer and use it in GitHub Desktop.
Dynamically converts function args to an array
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