sindresorhus/debounce-fn

Allow both leading and trailing #5

fregante posted onGitHub

The immediate parameter moves the call at the beginning. It would be nice to have two separate options, with the defaults:

{
    leading: false,
    trailing: true
}

Makes sense. Can you think of better names for those? I always got confused when I used them in Lodash.

posted by sindresorhus about 6 years ago

before/after? start/end?

posted by bfred-it about 6 years ago

before/after?

šŸ‘

posted by sindresorhus about 6 years ago

@issuehunt has funded $60.00 to this issue.


posted by IssueHuntBot almost 6 years ago

On it.

@sindresorhus Should immediate option be removed in that case? TS typing looks kinda complicated if it remains.

posted by stroncium almost 6 years ago

Should immediate option be removed in that case? TS typing looks kinda complicated if it remains.

Yes

posted by sindresorhus almost 6 years ago

@sindresorhus has rewarded $54.00 to @stroncium. See it on IssueHunt

  • :moneybag: Total deposit: $60.00
  • :tada: Repository reward(0%): $0.00
  • :wrench: Service fee(10%): $6.00
posted by issuehunt-app[bot] about 5 years ago

Fund this Issue

$60.00
Rewarded

Rewarded pull request

Recent activities

stroncium was rewarded by sindresorhus for sindresorhus/debounce-fn# 5
about 5 years ago
stroncium submitted an output to  sindresorhus/ debounce-fn# 5
almost 6 years ago