Meta tweaks
This commit is contained in:
parent
dc2dc9a438
commit
6cbefb9af7
3 changed files with 26 additions and 26 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue