Postpones "click" event to prevent it in case of "dblclick" event
Generally it is a bad idea to have meaningful click and dblclick handlers on the same target. But if your styleguide already includes such things, this utility will help.
npm install --save @redneckz/click-cluck
Pure JS Example
The best price ever!Give me two!
;const theBestProduct = ;theBestProduct console;theBestProduct console;
Press twice intermittently. And you will get:
Just wait a bit...Just wait a bit...
Make double click. And here it is:
Need a package?
Also timeout can be configured:
const theBestProduct =;