{"key":"qDMVJsSK","title":"debounce.js","syntax":"javascript","exposure":"public","category":"software","views":896,"size_bytes":227,"created_at":"2026-08-29T13:13:25+00:00","expires_at":null,"url":"https:\/\/note.pixiefix.top\/qDMVJsSK","raw_url":"https:\/\/note.pixiefix.top\/raw\/qDMVJsSK","content":"export function debounce(fn, wait = 250) {\n  let timer = null;\n\n  return function debounced(...args) {\n    clearTimeout(timer);\n    timer = setTimeout(() => {\n      timer = null;\n      fn.apply(this, args);\n    }, wait);\n  };\n}"}