Tiny debounce (vanilla JS)
On this page
javascript
const debounce = (fn, ms = 200) => {
let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); };
};
javascript
const debounce = (fn, ms = 200) => {
let t; return (...a) => { clearTimeout(t); t = setTimeout(() => fn(...a), ms); };
};
Swarnil Singhai
Alembic is a starting point for Jekyll projects. Rather than starting from scratch, this boilerplate is designed to get the ball rolling immediately
Alembic is a starting point for Jekyll projects. Rather than starting from scratch, this boilerplate is designed to get the bal...
About meHave a project or idea? Let's make it real.
Get in touch