Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/froebel/mod.ts>debounce

A strictly typed utility library.
Go to Latest
variable debounce
import { debounce } from "https://deno.land/x/froebel@v0.18.0/mod.ts";

Creates a debounced function that delays invoking fun until ms milliseconds have passed since the last invocation of the debounced function.

fun is invoked with the last arguments passed to the debounced function.

Calling [debounce.cancel]() on the debounced function will cancel the currently scheduled invocation.