@fuus/main
v0.0.2
Published
A library fo frequently used utilities.
Downloads
1
Readme
@fuus/main
Example
import { delay } from '@fuus/main';
delay(() => console.log('👋'), 500);
API
delay(fn, ms)
Delays the execution of an asynchronous function.debounce(fn, ms)
Creates a debounced function that delays invoking the provided function until at least ms milliseconds have elapsed since the last time it was invoked.throttle(fn, ms)
Creates a throttled function that only invokes the provided function at most once every defined milliseconds