Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

组合一下,在加个带有memo的功能 #5

Open
linxiaodi opened this issue Oct 8, 2022 · 0 comments
Open

组合一下,在加个带有memo的功能 #5

linxiaodi opened this issue Oct 8, 2022 · 0 comments

Comments

@linxiaodi
Copy link

linxiaodi commented Oct 8, 2022

期望:
var asyncSum = (a, b) => a + b

const sum1 = throttleAsync(asyncSum)

sum1(1, 2) // 执行
sum(1, 2) // 不会再执行
sum(3, 4) // 执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant