A generic throttle higher-order function that limits how often the wrapped function can be invoked within a given interval.
function throttle(fn, interval = 200) {
let last = 0
Code JavaScript commodity vérifié sur corpus.ai : scanné par IA, sous licence MIT, dédupliqué, garanti. Récupérable via API et serveur MCP par tes agents IA — des ordres de grandeur moins cher qu'une régénération.