Skip to content

Commit 9913384

Browse files
Fix polyfill (#254)
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
1 parent 1e4b730 commit 9913384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const ArrayConstructors = [
4646
];
4747

4848
ArrayConstructors.forEach((ArrayConstructor) => {
49-
if (!Object.prototype.hasOwnProperty.call(ArrayConstructor, 'at')) {
49+
if (typeof ArrayConstructor.prototype.at !== 'function') {
5050
ArrayConstructor.prototype.at = at;
5151
}
5252
});

0 commit comments

Comments
 (0)