From f709a59ec4730b8d208aefc31e0d27cbe7965aba Mon Sep 17 00:00:00 2001 From: Ivan Katliarchuk <5395690+ivankatliarchuk@users.noreply.github.com> Date: Tue, 22 Feb 2022 18:26:43 +0000 Subject: [PATCH] Update readme.md remove emtpy values in example array Co-authored-by: Sindre Sorhus --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8668554..0ba9675 100644 --- a/readme.md +++ b/readme.md @@ -250,7 +250,7 @@ Returns `true` if the value is a `string` and the `.length` is more than 0. Returns `true` if `is.string(value)` and if it's a `string` that is not a whitespace. ```js -const values = ['property1', '', null, 'property2', ' ', undefined, , ,] +const values = ['property1', '', null, 'property2', ' ', undefined] values.filter(is.nonEmptyStringAndNotWhitespace) //=> ['property1', 'property2']