This package has been deprecated

Author message:

No longer maintained and repo is archived

dynamic-timeouts

0.1.2 • Public • Published

A simple separate utility for debounce which can also be found within the popular Underscore library.

How To

Node

var debounce = require('dynamic-timeouts');
debounce();

##Arguments func - The function that you would like debounce to hold on wait - The Time (in ms) debounce should wait before execution immediate - should debounce fire the function the first time immediatly and then start waiting until activity stops then starts again

##Usage

var debounce = require('dynamic-timeouts');
function testMe() {
    console.log('Test World');
};
$('#test').on('click', debounce(testMe, 300));

Package Sidebar

Install

npm i dynamic-timeouts

Weekly Downloads

4

Version

0.1.2

License

ISC

Last publish

Collaborators

  • killparadise