Determines if a value of any type is a mergeable object. Used by deep-merge.

Parameters:
NameTypeDescription
value*

The value to be tested.

Since
  • 1.0.0
Returns:

Returns true if the specified value is a mergeable object. Returns false otherwise.

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

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