Update readme.md

This commit is contained in:
Sindre Sorhus 2018-05-03 09:55:11 +07:00 committed by GitHub
parent 221ee1cb38
commit 55fd9ca081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ is.nodeStream(fs.createReadStream('unicorn.png'));
Returns `true` if `value` is an `Observable`.
```js
const Observable = require('rxjs').Observable;
const {Observable} = require('rxjs');
is.observable(new Observable());
//=> true
```
@ -291,7 +291,6 @@ Returns `true` if `value` is falsy or an empty string, array, object, map, or se
Returns `true` if `is.empty(value)` or a string that is all whitespace.
##### .any(predicate, ...values)
Returns `true` if **any** of the input `values` returns true in the `predicate`:
@ -316,6 +315,7 @@ is.all(is.string, '🦄', [], 'unicorns');
//=> false
```
## FAQ
### Why yet another type checking module?