From 4ae317e36d3cfb70e72be0f29eb872f2a7bdcc0c Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Tue, 8 Jul 2025 23:46:57 +0700 Subject: [PATCH] i am dolboeb --- damper.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/damper.mjs b/damper.mjs index 313dec8..1594768 100644 --- a/damper.mjs +++ b/damper.mjs @@ -49,8 +49,8 @@ export function damper(func, timeout = 300, force) { // Deleting the force argument if (typeof force === "number") args = [ - ...args.splice(0, force), - ...args.splice(force) + ...Array.from(args).splice(0, force), + ...Array.from(args).splice(force + 1) ]; // Writing promise handlers into the arguments variable @@ -63,8 +63,8 @@ export function damper(func, timeout = 300, force) { // Deleting the force argument if (typeof force === "number") args = [ - ...args.splice(0, force), - ...args.splice(force) + ...Array.from(args).splice(0, force), + ...Array.from(args).splice(force + 1) ]; // Writing promise handlers into the arguments variable