Skip to content

Conversation

davidyuk
Copy link

@davidyuk davidyuk commented Nov 7, 2018

As I know, there is no difference between

return new Promise(resolve => resolve())

and

return Promise.resolve()

but the second option is much easier to read in most cases, I think you should use it.

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

Successfully merging this pull request may close these issues.

1 participant