Small utilities that appear constantly in real projects — and in interviews. Each is runnable in the Playground. Pattern Solves Debounce Run only after the user stops typing/resizing Throttle Run at most once every N ms during continuous events (scroll) Memoize Cache results of expensive pure functions Deep clone structuredClone() copies nested objects, Maps, Dates once Ensure initialisation runs a single time pipe / compose Build data transformations from small functions Event emitter Pub/sub between decoupled parts of an app Sleep await sleep(ms) in async code