mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 18:31:54 +00:00
17 lines
595 B
JavaScript
17 lines
595 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
if (!Object.hasOwn) {
|
|
Object.defineProperty(Object, "hasOwn", {
|
|
value: function (object, property) {
|
|
if (object == null) {
|
|
throw new TypeError("Cannot convert undefined or null to object");
|
|
}
|
|
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
},
|
|
configurable: true,
|
|
enumerable: false,
|
|
writable: true,
|
|
});
|
|
}
|