Meta tweaks

This commit is contained in:
Sindre Sorhus 2022-02-25 16:19:29 +07:00
parent dc2dc9a438
commit 6cbefb9af7
3 changed files with 26 additions and 26 deletions

View file

@ -241,6 +241,10 @@ is.enumCase('other', Direction);
Returns `true` if the value is a `string` and the `.length` is 0.
##### .emptyStringOrWhitespace(value)
Returns `true` if `is.emptyString(value)` or if it's a `string` that is all whitespace.
##### .nonEmptyString(value)
Returns `true` if the value is a `string` and the `.length` is more than 0.
@ -256,10 +260,6 @@ values.filter(is.nonEmptyStringAndNotWhitespace);
//=> ['property1', 'property2']
```
##### .emptyStringOrWhitespace(value)
Returns `true` if `is.emptyString(value)` or if it's a `string` that is all whitespace.
##### .emptyArray(value)
Returns `true` if the value is an `Array` and the `.length` is 0.