From 42489294453b21a4548beaa2d3dd459764ada852 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 25 Feb 2022 16:08:14 +0700 Subject: [PATCH] Update readme.md --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index ae1739c..e4e1924 100644 --- a/readme.md +++ b/readme.md @@ -247,12 +247,12 @@ Returns `true` if the value is a `string` and the `.length` is more than 0. ##### .nonEmptyStringAndNotWhitespace(value) -Returns `true` if `is.string(value)` and if it's a `string` that is non-empty and not a whitespace. +Returns `true` if the value is a `string` that is not empty and not whitespace. ```js -const values = ['property1', '', null, 'property2', ' ', undefined] +const values = ['property1', '', null, 'property2', ' ', undefined]; -values.filter(is.nonEmptyStringAndNotWhitespace) +values.filter(is.nonEmptyStringAndNotWhitespace); //=> ['property1', 'property2'] ```