Add is.observable
This commit is contained in:
parent
7ae4b44ca2
commit
221ee1cb38
5 changed files with 36 additions and 2 deletions
10
readme.md
10
readme.md
|
|
@ -261,6 +261,16 @@ is.nodeStream(fs.createReadStream('unicorn.png'));
|
|||
//=> true
|
||||
```
|
||||
|
||||
##### .observable(value)
|
||||
|
||||
Returns `true` if `value` is an `Observable`.
|
||||
|
||||
```js
|
||||
const Observable = require('rxjs').Observable;
|
||||
is.observable(new Observable());
|
||||
//=> true
|
||||
```
|
||||
|
||||
##### .infinite(value)
|
||||
|
||||
Check if `value` is `Infinity` or `-Infinity`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue