isObject

Modified on Mon, 21 Aug 2023

Description

Use this function to check if a value is of the language type Object.

Syntax

isObject(value)

Returns

Return ValueDescription
True/FalseReturns true if the given value is of the language type Object, and false otherwise.

Sample

ExampleResultDescription
isObject(5)falseReturns false if the given value, 5, is not of the language type Object.
isObject({})trueReturns true if the given value, an empty object, is of the language type Object.

To view all the Language functions, click here.