From f8122fc7f16482569126e0601abdfea98eddfac6 Mon Sep 17 00:00:00 2001 From: Levko Kravets Date: Tue, 23 Apr 2024 11:56:23 +0300 Subject: [PATCH] Fix polyfill Signed-off-by: Levko Kravets --- lib/polyfills.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } });