Object.defineProperty(Object.prototype, 'isObject', { value: function () { return 'v' } }) var o = { a: 1 }; console.log(o.isObject()) var a = [1, 23] console.log(a.hasOwnProperty('isObject'))