Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.141.164.253
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
just-debounce /
Delete
Unzip
Name
Size
Permission
Date
Action
.eslintrc
81
B
-rw-rw-r--
2022-08-30 11:49
.travis.yml
38
B
-rw-rw-r--
2022-08-30 11:49
LICENSE
1.05
KB
-rw-rw-r--
2022-08-30 11:49
README.md
1.34
KB
-rw-rw-r--
2022-08-30 11:49
index.d.ts
195
B
-rw-rw-r--
2022-08-30 11:49
index.js
615
B
-rw-rw-r--
2022-08-30 11:49
package.json
691
B
-rw-rw-r--
2022-08-30 11:49
prettier.config.js
253
B
-rw-rw-r--
2022-08-30 11:49
test.js
3.16
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
# just-debounce just a basic debounce function # changes - `1.1.0`: added typescript definitions # Why? I searched npm and the first 3 pages of results for "debounce" did not have a small correctly implemented version of debounce # Usage ### arguments - `fn`: the function to debounce - `delay`: debounce delay in ms - `atStart:` if true, the function will be called at the beginning of the delay rather than the end - `guarantee`: additional calls to debounced function will not reset they `delay`. This guarantees that if the function is called frequently, it will fire once every `delay` rather than waiting for a break in calls. ```javascript var db = require('just-debounce'); var debounced = db(function (v) { console.log(v); }, 100); debounced('hi'); debounced('hi'); // logs 'hi' once after 100ms ``` ```javascript var db = require('just-debounce'); var debounced = db( function (v) { console.log(v); }, 100, true ); debounced('hi'); debounced('hi'); // logs 'hi' once right away, but not a second time. calling after 100ms will log again ``` ```javascript var db = require('just-debounce'); var debounced = db( function (v) { console.log(v); }, 100, false, true ); debounced('hi'); setTimeout(function () { debounced('hi2'); }, 80); // logs 'hi2' once 100ms after the first call to debounced ``` # license MIT