Update readme.md
remove emtpy values in example array Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
This commit is contained in:
parent
57ba0376c4
commit
f709a59ec4
1 changed files with 1 additions and 1 deletions
|
|
@ -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']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue