Underscore.js _.isObject() Function (original) (raw)

Last Updated : 25 Apr, 2025

Underscore.js**_.isObject() function is used to check whether the given object is an object or not. It returns a Boolean value True if the given object element is an object and returns False otherwise. JavaScript functions and arrays are objects, while the strings and numbers are not objects.

**Syntax:

_.isObject( value );

**Parameters:

**Return Value:

It returns True if the given object element is an object and False otherwise.

**Example 1: This example shows the use of the underscore.js _.isObject() function.

html

**Output:

**Example 2: This example shows the use of the underscore.js _.isObject() function.

html

**Output:

Similar Reads