Determines if the specified obj is an empty object.

Parameters:
NameTypeDescription
objobject

The object to be tested.

Since
  • 1.0.0
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 );
}