Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // global var or class var:
- myTimeout = null
- function getminmax(){
- clearTimeout(myTimeout)
- myTimeout = setTimeout(()=> {getminmaxStuffandDoStuff()} , 2000)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement