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.
1 parent 1e4b730 commit 9913384Copy full SHA for 9913384
lib/polyfills.ts
@@ -46,7 +46,7 @@ const ArrayConstructors = [
46
];
47
48
ArrayConstructors.forEach((ArrayConstructor) => {
49
- if (!Object.prototype.hasOwnProperty.call(ArrayConstructor, 'at')) {
+ if (typeof ArrayConstructor.prototype.at !== 'function') {
50
ArrayConstructor.prototype.at = at;
51
}
52
});
0 commit comments