Skip to content

Instantly share code, notes, and snippets.

@dskecse
Created May 12, 2016 10:51
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 dskecse/a9874f144fc7d7d13ea05b0340679d34 to your computer and use it in GitHub Desktop.
Save dskecse/a9874f144fc7d7d13ea05b0340679d34 to your computer and use it in GitHub Desktop.
fn arguments to list
function list() {
return [].slice.call(arguments, 0);
}
var list = list(1, 2, 3); // [1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment