debounce-fn
Advanced tools
Comparing version 0.0.0 to 0.1.0
@@ -7,2 +7,6 @@ module.exports = debounce; | ||
if (arguments.length == 1) { | ||
wait = 250; | ||
} | ||
return function () { | ||
@@ -9,0 +13,0 @@ if (timer != undefined) { |
{ | ||
"name": "debounce-fn", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"description": "Return a debounced version of the given function", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,3 @@ ## debounce-fn | ||
var debounce = require('debounce-fn') | ||
var yo = debounce(printYo, 250) // debounce for 250ms | ||
var yo = debounce(printYo, 300) // debounce for 300ms. default is 250ms. | ||
@@ -18,0 +18,0 @@ yo() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1224
18