function isUndefined(object) { return typeof object === "undefined"; } extend(Object, { ... isUndefined: isUndefined }); var b = Object.isUndefined(Obj1) //b => true