wallet-core/node_modules/is-observable/readme.md

31 lines
603 B
Markdown
Raw Normal View History

2017-05-28 00:38:50 +02:00
# is-observable [![Build Status](https://travis-ci.org/sindresorhus/is-observable.svg?branch=master)](https://travis-ci.org/sindresorhus/is-observable)
> Check if a value is an [Observable](https://github.com/zenparsing/es-observable)
## Install
```
$ npm install --save is-observable
```
## Usage
```js
const isObservable = require('is-observable');
isObservable(Observable.of(1, 2));
//=> true
```
## Related
- [observable-to-promise](https://github.com/sindresorhus/observable-to-promise) - Convert an Observable to a Promise
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)