added filter component

This commit was merged in pull request #32.
This commit is contained in:
victorAnumudu
2025-05-28 13:27:33 +01:00
parent fcc60a6e46
commit cf409cbac2
12 changed files with 621 additions and 68 deletions
+15
View File
@@ -0,0 +1,15 @@
function debounceFunction(func, delay) {
let timer;
return function(...args) {
// Clear the previous timer if the function is called before the delay
clearTimeout(timer);
// Set a new timer to execute the function after the specified delay
timer = setTimeout(() => {
func(...args);
}, delay);
};
}
export default debounceFunction