Methods
(static) areValuesEqual(object) → {boolean}
- Source:
- Since:
- 0.21.0
- See:
Return true
if all values of the provided object are equal
Example
> areValuesEqual({a: 1, b: 1, c: 1})
true
> areValuesEqual({a: [1, 2], b: [1, 2], c: [1, 2]})
true
> areValuesEqual({a: 1, b: 2, c: 3})
false
> areValuesEqual({a: [1, 2], b: [1, 3], c: [1, 2]})
false
> areValuesEqual({a: 1})
false
> areValuesEqual({})
false
Parameters:
Name | Type | Description |
---|---|---|
object |
object |
Returns:
boolean
- Type
- boolean
(static) isObjEmpty(object) → {boolean}
- Source:
- Since:
- 0.1.0
Return true
if the object is empty.
Example
> isObjEmpty({})
true
> isObjEmpty({a: 1})
false
Parameters:
Name | Type | Description |
---|---|---|
object |
object |
Returns:
boolean
- Type
- boolean
(static) isObjNotEmpty(object) → {boolean}
- Source:
- Since:
- 0.1.0
Return true
if the object is not empty.
Example
> isObjEmpty({a: 1})
true
> isObjEmpty({})
false
Parameters:
Name | Type | Description |
---|---|---|
object |
object |
Returns:
boolean
- Type
- boolean