mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Add search to post list
This commit is contained in:
4
app/javascript/helpers/debounce.js
Normal file
4
app/javascript/helpers/debounce.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// 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;
|
||||
Reference in New Issue
Block a user