1
0
Fork 0

i am dolboeb

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich 2025-07-08 23:46:57 +07:00
parent e8f1f534be
commit 4ae317e36d

View File

@ -49,8 +49,8 @@ export function damper(func, timeout = 300, force) {
// Deleting the force argument // Deleting the force argument
if (typeof force === "number") args = [ if (typeof force === "number") args = [
...args.splice(0, force), ...Array.from(args).splice(0, force),
...args.splice(force) ...Array.from(args).splice(force + 1)
]; ];
// Writing promise handlers into the arguments variable // Writing promise handlers into the arguments variable
@ -63,8 +63,8 @@ export function damper(func, timeout = 300, force) {
// Deleting the force argument // Deleting the force argument
if (typeof force === "number") args = [ if (typeof force === "number") args = [
...args.splice(0, force), ...Array.from(args).splice(0, force),
...args.splice(force) ...Array.from(args).splice(force + 1)
]; ];
// Writing promise handlers into the arguments variable // Writing promise handlers into the arguments variable