Update readme.md

remove emtpy values in example array

Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
This commit is contained in:
Ivan Katliarchuk 2022-02-22 18:26:43 +00:00 committed by GitHub
parent 57ba0376c4
commit f709a59ec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. Returns `true` if `is.string(value)` and if it's a `string` that is not a whitespace.
```js ```js
const values = ['property1', '', null, 'property2', ' ', undefined, , ,] const values = ['property1', '', null, 'property2', ' ', undefined]
values.filter(is.nonEmptyStringAndNotWhitespace) values.filter(is.nonEmptyStringAndNotWhitespace)
//=> ['property1', 'property2'] //=> ['property1', 'property2']