SillyTavern/public/lib/object-hasown.js

5 lines
138 B
JavaScript
Raw Normal View History

2023-12-10 22:28:00 +01:00
// Polyfill for old Safari versions
if (!Object.hasOwn) {
Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); }
}