Time Loom

A utility for creating delayed functions using debouncing and throttling.
Installation
npm install time-loom
Usage
const { debounce, throttle } = require('time-loom');
const debouncedFunction = debounce(() => {
}, 500);
const throttledFunction = throttle(() => {
}, 1000);
API
debounce(fn, delay)
Creates a debounced function.
fn: The function to debounce.
delay: The delay in milliseconds.
throttle(fn, delay)
Creates a throttled function.
fn: The function to throttle.
delay: The minimum time between invocations in milliseconds.
Examples
- You can find more examples in the examples directory.
Author