Skip to content

Instantly share code, notes, and snippets.

@xhoskin
Last active January 13, 2016 07:53
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 xhoskin/4c0d2e575019f7660b23 to your computer and use it in GitHub Desktop.
Save xhoskin/4c0d2e575019f7660b23 to your computer and use it in GitHub Desktop.
чтобы методы массивов работали с arguments
Array.prototype.slice.call(arguments, 0).join("\n");
// Array.prototype.slice.call – уловка для превращения объекта, похожего на массив,
// такого как arguments, в настоящий массив, чтобы мы могли применить к нему join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment