From 55fd9ca081498e4e7e62801e93d8c3d7f73d1459 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 3 May 2018 09:55:11 +0700 Subject: [PATCH] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 0f87233..ac7876e 100644 --- a/readme.md +++ b/readme.md @@ -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?