I have a closure, and I want to access the arguments to the closure from inside the closure. Is this possible?
function outerFunction (param1, param2) {
// Returns [param1, param2, [param1, param2]]
return function innerFunction () { return [param1, param2, arguments] }
}
// [1, 2, [3, 4]]
outerFunction(1, 2)(3, 4);