Test if an item is a JavaScript object (i.e. not an array or any other type ).

Parameters:
NameTypeDescription
item*

The item to be tested.

Since
  • 1.0.0
Returns:

Returns true if the specified item is a JavaScript object. Returns false otherwise.

Type: 
boolean
Example
import { isObject } from "@gravityforms/utils";

function Example() {
  const someObject = { 'prop' : 'val' };
	 const isObject = isObject( someObject );
}