Skip to content

object.isArray() in Javascript

http://thinkweb2.com/projects/prototype/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/

It’s mind-boggling how many pitfalls there are when implementing this seemingly simple method. How lucky we are to have scads of Javascript libraries nowadays to handle all this hairy stuff for us, so we can spend more time writing cool software rather than reinventing the wheel :)

Post a Comment

Your email is never published nor shared. Required fields are marked *