Is it safe to use instanceof operator to test any value type?
E.g.
(x instanceof Object) // x is defined, but can be anything, including undefined)