Monday, April 11, 2011

JavaScript: Don't reassign your function arguments | Atomic Object, Software Design & Development

JavaScript: Don't reassign your function arguments | Atomic Object, Software Design & Development: "The numbered properties of the Arguments Object are synonymous with the local variables that hold the named function parameters. They both reference the same address in the stack. If the function body has code that changes the value of a parameter either via a name reference or the arguments[] array reference, both referenced values will reflect the same value."