rudiedirkx/simpledom — Issue #2: Use instanceof for type checking
Author: rudiedirkx
Created: 2011-11-20 05:16:17+00:00
State: open

`typeof` is often not good enough. It returns "object" for hashes and lists.

Solution: `instanceof`

argN instanceof Object // always true
argN instanceof Array // not always true

Tadaa