Multi-window fix for Objects.isObject

This commit is contained in:
pyoor 2017-06-08 18:15:31 -04:00
parent d7cb85131d
commit 97bc2ab4ad

View file

@ -58,6 +58,7 @@ Object.defineProperty(Object, 'isObject', {
enumerable: false, enumerable: false,
writable: true, writable: true,
value: function (obj) { value: function (obj) {
return ((!!obj) && (obj.constructor === Object)) return (obj != null && typeof obj === 'object' &&
Object.prototype.toString.call(obj) === '[object Object]')
} }
}) })