()
| 15 | |
| 16 | const debounced = function debounced(this: T, ...args: A): void { |
| 17 | const later = () => { |
| 18 | timeout = null |
| 19 | if (!immediate) { |
| 20 | currentFunc.apply(this, args) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | if (immediate && !timeout) { |
| 25 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected