@taufik-nurrohman/tick
v1.0.1
Published
Utility functions to do time-related tasks.
Downloads
26
Maintainers
Readme
Time Utility
Utility functions to do time-related tasks.
Usage
CommonJS
const {debounce} = require('@taufik-nurrohman/tick');
window.addEventListener('resize', debounce(e => {
console.log('Resize!');
}, 1000));
ECMAScript
import {debounce} from '@taufik-nurrohman/tick';
window.addEventListener('resize', debounce(e => {
console.log('Resize!');
}, 1000));