Test if an item is a JavaScript object (i.e. not an array or any other type ).
Parameters:
Name | Type | Description |
---|---|---|
item | * | The item to be tested. |
- Since
- 1.0.0
- Source
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 );
}