diff --git a/lib/utils/prototypes.js b/lib/utils/prototypes.js index aba2952..af3cacb 100644 --- a/lib/utils/prototypes.js +++ b/lib/utils/prototypes.js @@ -52,3 +52,12 @@ Object.defineProperty(Array.prototype, 'map', function (fn, array) { }) return result }) + +Object.defineProperty(Object, 'isObject', { + configurable: true, + enumerable: false, + writable: true, + value: function (obj) { + return ((!!obj) && (obj.constructor === Object)) + } +})