Groww-OSS / Groww-OSS/webster

Debounce options missing trailing flag

Open
#73 0 comments 0 reactions 2 assignees Assigned to @PrIwbkvXL9QVZOng08Aw3FqFpbZJr9iRKOxwFUj View on GitHub
bug enhancement
Dominant language
TypeScript
Stars
5
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Current debounce implementation has only leading flag.
With leading true, function gets invoked on both beginning and edge of the timeout. This is slightly a different implementation compared to lodash/debounce implementation.

Need trailing flag as well, to control the invocation of function.

https://lodash.com/docs/4.17.15#debounce similar to this

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.