Export function to validate if a value is an empty object
- License:
- Source:
Example
import { isEmptyObject } from 'itee-validators' if( isEmptyObject( value ) ) { //... } else { //... }
Methods
-
<static> isEmptyObject(data)
-
Check if given data is an empty object
Parameters:
Name Type Description data
* The data to check against the emptiness of the object Returns:
true if data is an empty object, false otherwise- Type
- boolean
-
<static> isNotEmptyObject(data)
-
Check if given data is not an empty object
Parameters:
Name Type Description data
* The data to check against the emptiness of the object Returns:
true if data is not an empty object, false otherwise- Type
- boolean