A utility validation object.
Methods
hasValue(value) → {boolean}
Checks value for existence. The following are falsy:
- null
- undefined
- ''
- []
- {}
Parameters:
| Name | Type | Description |
|---|---|---|
value | any |
- Since
- 2.11.0
- Returns:
- boolean
isEmptyObject(obj) → {boolean}
Checks whether an object is empty
Parameters:
| Name | Type | Description |
|---|---|---|
obj | Object |
- Since
- 2.23.1
- Returns:
- boolean