PetriP-TNT
Member
Code:return toString.call(arr) == '[object Array]';
Wow, I had no idea there were popular packages this small. Probably the right approach if you take OO to its natural conclusion.
The "isArray" module is another funny example: most people would just do "return arr instanceof Array" which is inadequate. Not to mention it's a polyfill for very old browsers to boot.