diff --git a/lib/polyfills.ts b/lib/polyfills.ts index 4d2c5632..006d38f1 100644 --- a/lib/polyfills.ts +++ b/lib/polyfills.ts @@ -46,7 +46,7 @@ const ArrayConstructors = [ ]; ArrayConstructors.forEach((ArrayConstructor) => { - if (!Object.prototype.hasOwnProperty.call(ArrayConstructor, 'at')) { + if (typeof ArrayConstructor.prototype.at !== 'function') { ArrayConstructor.prototype.at = at; } });