(ref: React.RefObject<NodeJS.Timeout | null>)
| 1 | const clearTimeoutRef = (ref: React.RefObject<NodeJS.Timeout | null>) => { |
| 2 | if (ref.current) { |
| 3 | clearTimeout(ref.current) |
| 4 | |
| 5 | ref.current = null |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | export default clearTimeoutRef |
no outgoing calls
no test coverage detected
searching dependent graphs…