sindresorhus / debounce

Delay function calls until a set time elapses after the last invocation
Other
798 stars 80 forks source link

remove unnecessary code #6

Closed suhaotian closed 8 years ago

suhaotian commented 9 years ago

Because

  timeout = null

so if(!timeout) always be true, it's unnecessary

vendethiel commented 8 years ago

thanks