Add Object.hasOwn polyfill

This commit is contained in:
Cohee
2023-12-10 23:28:00 +02:00
parent f43d738dfd
commit 2e6ab8be46
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
// Polyfill for old Safari versions
if (!Object.hasOwn) {
Object.hasOwn = function (obj, prop) { return obj.hasOwnProperty(prop); }
}