Samir To check if the variable x is an Object, we need to use the is() function : x = Object { name = "John", age = 12 } is(x, Object) -- should return true A dedicated global function isobject(x) should be better.
Mike I actually like is(x, Object). This would require a special case in the implementation of is, the current version returns false since Object is not an object, it is a function, isobject(x) is perfectly acceptable if it runs faster or is easier to code.