Skip to content

Instantly share code, notes, and snippets.

@chenbojian
Created January 6, 2016 12:23
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 chenbojian/8875c8e26d5527f47469 to your computer and use it in GitHub Desktop.
Save chenbojian/8875c8e26d5527f47469 to your computer and use it in GitHub Desktop.

introduce arguments as array like object.

(() => {
  try {
    throw arguments.map(x => x * 3);
  } catch (e) {
    console.log(e);
  }
})(1, 2, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment