Created
May 12, 2016 10:51
-
-
Save dskecse/a9874f144fc7d7d13ea05b0340679d34 to your computer and use it in GitHub Desktop.
fn arguments to list
This file contains hidden or 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
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