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
[ADD: defer.md
] defer
#454
Conversation
snippets/defer.md
Outdated
operator to supply the function with an arbitrary number of arguments. | ||
|
||
```js | ||
const defer = (fn, ...args) => setTimeout(fn, 1, ...args); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either 1ms or 0ms both work. Upon checking deeper the only reason I can think of for 1ms is possible compatibility, which isn't such a bad thing with this function due to how it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing yet again!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for any follow-up tasks. |
Description
Lodash[ADD defer.md] #100 -> https://lodash.com/docs/4.17.4#defer
What does your PR belong to?
Types of changes
Lodash Backlog
method.md
] or [ADD:method.md
]method
to the lodash backlog.Checklist: