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