Socket
Socket
Sign inDemoInstall

dynamic-timeouts

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dynamic-timeouts

Simple dynamic timeout module


Version published
Maintainers
1
Install size
2.61 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 06 Jun 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc