sindresorhus/debounce-fn







The issue has been solved
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
}