The isObject()
method tests if the provided value is an Object and returns a boolean value.
bapi.helper.isObject(value)
value
The value to test.
bapi.helper.isObject("Test Value.");//returns false
bapi.helper.isObject([1,2,5]);//returns false
bapi.helper.isObject({id: 1, name: "Joe"});//returns true
bapi.helper.isObject(125);//returns false