mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
fix(async): improve debounce node.js compatibility (#5419)
This commit is contained in:
parent
22d3bda488
commit
369901d027
@ -58,7 +58,7 @@ export function debounce<T extends Array<any>>(
|
||||
debounced.clear();
|
||||
fn.call(debounced, ...args);
|
||||
};
|
||||
timeout = setTimeout(flush, wait);
|
||||
timeout = Number(setTimeout(flush, wait));
|
||||
}) as DebouncedFunction<T>;
|
||||
|
||||
debounced.clear = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user