Module: sources/cores/objects/isObject

Export function to validate if a value is an object
Author:
License:
Source:

Example

import { isObject } from 'itee-validators'

if( isObject( value ) ) {
    //...
} else {
    //...
}

Methods


<static> isNotObject(data)

Check if given data is not an object
Parameters:
Name Type Description
data * The data to check against the object type
Source:
Returns:
true if data is not an object, false otherwise
Type
boolean

<static> isObject(data)

Check if given data is an object
Parameters:
Name Type Description
data * The data to check against the object type
Source:
Returns:
true if data is object, false otherwise
Type
boolean