MCPcopy
hub / github.com/antonmedv/codejar / debounce

Function debounce

codejar.ts:523–529  ·  view source on GitHub ↗
(cb: any, wait: number)

Source from the content-addressed store, hash-verified

521 }
522
523 function debounce(cb: any, wait: number) {
524 let timeout = 0
525 return (...args: any) => {
526 clearTimeout(timeout)
527 timeout = window.setTimeout(() => cb(...args), wait)
528 }
529 }
530
531 function findPadding(text: string): [string, number, number] {
532 // Find beginning of previous line.

Callers 1

CodeJarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected