!Debounce

Run Settings
LanguageJavaScript
Language Version
Run Command
export const debounce = (func, ms) => { let timeoutId; const context = this; const result = (...args) => { clearTimeout(timeoutId); timeoutId = setTimeout(() => func.apply(context, args), ms); }; result.cancel = () => clearTimeout(timeoutId); return result; };
Editor Settings
Theme
Key bindings
Full width
Lines