The official [underscore.js][1] uses this check to find out if something is really an object
// Is a given variable an object?
_.isObject = function(obj) {
return obj === Object(obj);
};
[1]: http://underscorejs.org/#isObject