Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

just-debounce-it

1.1.0 • Public • Published

just-debounce-it

Part of a library of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

Try it now

import debounce from 'just-debounce-it';
 
const fn1 = debounce(() => console.log('Hello'), 500);
fn1();
fn1();
fn1();
// 500ms later logs 'hello' once
 
const fn2 = debounce(() => console.log('Hello'), 500, true);
fn2(); // logs hello immediately
fn2();
fn2();
// 500ms later logs 'hello' once

Install

npm i just-debounce-it

DownloadsWeekly Downloads

23,249

Version

1.1.0

License

MIT

Unpacked Size

2.57 kB

Total Files

4

Last publish

Collaborators

  • avatar