Debounce ๐
@common-utilities/debounce ๐งฐ
Install
yarn add @common-utilities/debounce -DUsage
let result = 1
const add1 = (val) => {
result = val + 1
}
debounce(add1, 1000)(1) // returns 2, after 1 secondCommon Utilities ๐งฐ
Last updated