aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-observable/readme.md
blob: aaef1b3c745824da94ec281a2402404ea6f929c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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)