Methods
isObject(value) → {Boolean}
Returns if a value is an object.
Hint: if you explicitly want to check for a plain object, use isPlainObject
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
- Source:
- See:
Returns:
true if value is an object
- Type
- Boolean
Example
if( isObject(val) ){
val.newProperty = 'foobar';
}