i am a dumbass

This commit is contained in:
2025-07-08 23:14:13 +07:00
parent 68589e968c
commit 69cb4416f2

View File

@@ -50,7 +50,7 @@ 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), ...args.splice(0, force),
...args.splice(force + 1) ...args.splice(force)
]; ];
// Writing promise handlers into the arguments variable // Writing promise handlers into the arguments variable
@@ -64,7 +64,7 @@ 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), ...args.splice(0, force),
...args.splice(force + 1) ...args.splice(force)
]; ];
// Writing promise handlers into the arguments variable // Writing promise handlers into the arguments variable