i am dolboeb
This commit is contained in:
parent
e8f1f534be
commit
4ae317e36d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue