Set theimmediateoption totrueto execute the function immediately at the start of thewaitinterval, preventing issues such as double-clicks on a button. The returned function has the following methods: .isPendingindicates whether the debounce delay is currently active. ...