PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
mout
/
function
/** * Debounce callback execution */ function debounce(fn, threshold, isAsap){ var timeout, result; function debounced(){ var args = arguments, context = this; function delayed(){ if (! isAsap) { result = fn.apply(context, args); } timeout = null; } if (timeout) { clearTimeout(timeout); } else if (isAsap) { result = fn.apply(context, args); } timeout = setTimeout(delayed, threshold); return result; } debounced.cancel = function(){ clearTimeout(timeout); }; return debounced; } module.exports = debounce;
[-] bind.js
[edit]
[-] throttle.js
[edit]
[-] partial.js
[edit]
[-] awaitDelay.js
[edit]
[-] series.js
[edit]
[+]
..
[-] debounce.js
[edit]
[-] timeout.js
[edit]
[-] times.js
[edit]
[-] wrap.js
[edit]
[-] func.js
[edit]
[-] identity.js
[edit]
[-] constant.js
[edit]
[-] makeIterator_.js
[edit]
[-] compose.js
[edit]
[-] prop.js
[edit]