* @returns {void}
()
| 15 | * @returns {void} |
| 16 | */ |
| 17 | function debounced() { |
| 18 | const context = this; |
| 19 | const args = arguments; |
| 20 | |
| 21 | clearTimeout(timer); |
| 22 | timer = setTimeout(function () { |
| 23 | return fn.apply(context, args); |
| 24 | }, wait); |
| 25 | } |
| 26 | |
| 27 | return debounced; |
| 28 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…