sindresorhus / any-observable

Support any Observable library and polyfill
MIT License
70 stars 12 forks source link

Optional import #12

Open jamestalmage opened 8 years ago

jamestalmage commented 8 years ago

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) - [issuehunt issuehunt](https://issuehunt.io/u/issuehunt) ($20.00) #### [Become a sponsor now!](https://issuehunt.io/r/sindresorhus/any-observable/issues/12) #### [Or submit a pull request to get the deposits!](https://issuehunt.io/r/sindresorhus/any-observable/issues/12) ### Tips - Checkout the [Issuehunt explorer](https://issuehunt.io/r/sindresorhus/any-observable/) to discover more funded issues. - Need some help from other developers? [Add your repositories](https://issuehunt.io/r/new) on IssueHunt to raise funds.
sindresorhus commented 8 years ago

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

IssueHuntBot commented 5 years ago

@issuehunt has funded $20.00 to this issue.