i am a dumbass
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user