dynamic-timeoutsdeprecated

Simple dynamic timeout module

Usage no npm install needed!

<script type="module">
  import dynamicTimeouts from 'https://cdn.skypack.dev/dynamic-timeouts';
</script>

README

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));