mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
4 lines
284 B
JavaScript
4 lines
284 B
JavaScript
|
|
// https://toughcompetent.com/blog/es5-es6-debounce-react-events-on-inputs/
|
||
|
|
function debounce(a,b,c){var d,e;return function(){function h(){d=null,c||(e=a.apply(f,g))}var f=this,g=arguments;return clearTimeout(d),d=setTimeout(h,b),c&&!d&&(e=a.apply(f,g)),e}}
|
||
|
|
|
||
|
|
export default debounce;
|