Skip to content

Instantly share code, notes, and snippets.

@fakefarm
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakefarm/872c9deb2b444e903ec3 to your computer and use it in GitHub Desktop.
Save fakefarm/872c9deb2b444e903ec3 to your computer and use it in GitHub Desktop.
Javascript Arguments act as array
// Arguments look like array's but are not. But you can add array functionality with prototype.
function Max(x,y,z) {
var args = Array.prototype.slice.call(arguments);
return args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment