Loop Over arguments
© 2011, Martin Rinehart
OK. Time to stop blaming MSIE for all the cross-browser issues. (Though you can certainly continue to blame it for most of the cross-browser issues.)
The arguments
pseudo-array that is available inside a function can be processed with a for/in
loop in Chrome and Opera. It cannot be processed with a for/in
loop in Firefox, MSIE and Safari. This works in all five:
for ( var i = 0; i < arguments.length; i++ ) { ... }
Feedback: MartinRinehart at gmail dot com
# # #