mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 18:43:33 +00:00
61a70f6b52
move last message details in the `meta` JSONB column of conversations
8 lines
180 B
JavaScript
8 lines
180 B
JavaScript
export function debounce (fn, delay) {
|
|
let timeout
|
|
return function (...args) {
|
|
clearTimeout(timeout)
|
|
timeout = setTimeout(() => fn(...args), delay)
|
|
}
|
|
}
|