home/roleplay/prompt-194

PROMPT

GPTClaudeGemini··1,383 copies·updated 2026-07-14
prompt-194.prompt
Implement a `debounce` utility.

- Write it to a single file `debounce.js` (ES module) and export a **named** function `debounce`.
- `debounce(fn, waitMs)` returns a function that delays invoking `fn` until `waitMs` have elapsed since the last time the returned function was called. Rapid successive calls collapse into a single trailing call.

Only what is asked. Do not add a CLI, a build config, or unrelated files.

when to use it

Community prompt sourced from the open-source GitHub repo christopherlouet/claude-base (MIT). A "PROMPT" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

christopherlouet/claude-base · MIT