We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0c1f9d + 0baf4ee commit e3fffb7Copy full SHA for e3fffb7
lib/util.js
@@ -9,7 +9,9 @@ exports.hasKeys = function(object) {
9
};
10
11
var hasOwn;
12
-exports.hasOwn = hasOwn = Object.hasOwn || Object.prototype.hasOwnProperty.call;
+exports.hasOwn = hasOwn = Object.hasOwn || function(obj, prop) {
13
+ return Object.prototype.hasOwnProperty.call(obj, prop);
14
+};
15
16
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger#Polyfill
17
exports.isInteger = Number.isInteger || function(value) {
0 commit comments