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