Determines if the specified obj is an empty object.
Parameters:
Name | Type | Description |
---|---|---|
obj | object | The object to be tested. |
- Since
- 1.0.0
- Source
Returns:
Returns true if the specified obj is an object and is empty. Returns false otherwise.
- Type:
- boolean
Example
import { isEmptyObject } from "@gravityforms/utils";
function Example() {
const obj = { prop: 'val' };
const isEmpty = isEmptyObject( obj );
}