Skip to content

Commit

Permalink
Fix polyfill (#254)
Browse files Browse the repository at this point in the history
Signed-off-by: Levko Kravets <levko.ne@gmail.com>
  • Loading branch information
kravets-levko authored Apr 29, 2024
1 parent 1e4b730 commit 9913384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});

0 comments on commit 9913384

Please sign in to comment.