Mon Nov 15 2010 |
|
From a listener request, Brendan drives a relatively concise discussion around the topic of the mysterious (and often confusing) 'arguments' object that is available within a function body in JavaScript. This goes into the upcoming spread, splat, and rest parameters within function descriptions and executions.
- JavaScript arguments object
- Function.prototype.apply
- foo.arguments (old and busted) instead of arguments (better - not great)
var z = [1,2,3]; (function (a, b, c) { return;})(...z);