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

Optional import #12

Open
jamestalmage opened this issue May 3, 2016 · 2 comments
Open

Optional import #12

jamestalmage opened this issue May 3, 2016 · 2 comments
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement help wanted

Comments

@jamestalmage
Copy link
Contributor

jamestalmage commented May 3, 2016

Issuehunt badges

An import that won't throw:

var Observable = require('any-observable/optional');
// => null if there is no implementation
IssueHunt Summary

Sponsors (Total: $20.00)

Become a sponsor now!

Or submit a pull request to get the deposits!

Tips

@sindresorhus
Copy link
Owner

👍 Wrapping it in try/catch would easily get annoying.

@sindresorhus sindresorhus changed the title optional import Optional import Apr 19, 2018
@issuehunt-oss issuehunt-oss bot added the 💵 Funded on Issuehunt This issue has been funded on Issuehunt label May 28, 2019
@IssueHuntBot
Copy link

@IssueHunt has funded $20.00 to this issue.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💵 Funded on Issuehunt This issue has been funded on Issuehunt enhancement help wanted
Projects
None yet
Development

No branches or pull requests

3 participants