hg-pyun / t-debounce

Tiny debounce

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

t-debounce

npm npm NPM

The tiny debounce function.

Installation

$ npm install t-debounce --save

How to use

const debounce = require('t-debounce');
const deFunc = debounce(() => {
  console.log('exec');
}, 1000);

for (let i = 0; i < 100; i++) {
  deFunc();
}

About

Tiny debounce


Languages

Language:JavaScript 100.0%