gruss Mathias,
... In einem soliden browserübergreifenden Test auf das [arguments] array
steckt schon etwas Aufwand.Wieso?
Object.prototype.toString.call(arguments) === '[object Arguments]'
http://es5.github.com/#x10.6
schon, aber Laura wollte doch eine ( Zitat: ) "cross-browser-Methode".
Internet Explorer bis einschließlich Version 8 liefern für ...
(function () {return Object.prototype.toString.call(arguments);})();
... - wie für fast alle Objekte - einfach nur "[object Object]" zurück.
so long - peterS. - pseliger@gmx.net
--
»Because objects in JavaScript are so flexible, you will want to think differently about class hierarchies.
Deep hierarchies are inappropriate. Shallow hierarchies are efficient and expressive.« - Douglas Crockford
ie:( fl:) br:> va:( ls:& fo:) rl:) n3;} n4:} ss:} de:µ js:} mo:? zu:]
»Because objects in JavaScript are so flexible, you will want to think differently about class hierarchies.
Deep hierarchies are inappropriate. Shallow hierarchies are efficient and expressive.« - Douglas Crockford
ie:( fl:) br:> va:( ls:& fo:) rl:) n3;} n4:} ss:} de:µ js:} mo:? zu:]