Skip to content

Instantly share code, notes, and snippets.

@manekinekko
Last active September 12, 2018 11:14
Show Gist options
  • Save manekinekko/9fa0e3499c6d5ad08ebba1aace88b870 to your computer and use it in GitHub Desktop.
Save manekinekko/9fa0e3499c6d5ad08ebba1aace88b870 to your computer and use it in GitHub Desktop.
// astuce #1
var args = [].slice.call(arguments, 0);
// astuce #2
[].forEach.call(arguments, ( x => /* expression */ ) );
// astuce #3
const args = Array.from(arguments);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment