DEV Community

Discussion on: Debouncing in Javascript

Collapse
 
dhilipkmr profile image
Dhilip kumar

Good one.
A couple of suggestions.
1.if(timer) check is unnecessary

  1. It does not maintain this context.You'll have to bind it to avoid unexpected results