Home

function: isObject


isObject(value: *): boolean

Checks if `value` is the [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)

Example(s):

isObject({})
// => true

isObject([1, 2, 3])
// => true

isObject(Function)
// => true

isObject(null)
// => false

Params:

Name Type Attribute Description
value The value to check.

Returns:

boolean

  {
    "comment": "/**\r\n * Checks if `value` is the\r\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\r\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\r\n *\r\n * @since 0.1.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\r\n * @example\r\n *\r\n * isObject({})\r\n * // => true\r\n *\r\n * isObject([1, 2, 3])\r\n * // => true\r\n *\r\n * isObject(Function)\r\n * // => true\r\n *\r\n * isObject(null)\r\n * // => false\r\n */",
    "meta": {
        "range": [
            568,
            694
        ],
        "filename": "isObject.js",
        "lineno": 24,
        "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo",
        "code": {
            "id": "astnode100005030",
            "name": "isObject",
            "type": "FunctionDeclaration",
            "paramnames": [
                "value"
            ]
        },
        "vars": {
            "type": "isObject~type"
        }
    },
    "description": "Checks if `value` is the\r[language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\rof `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)",
    "since": "0.1.0",
    "tags": [
        {
            "originalTitle": "category",
            "title": "category",
            "text": "Lang",
            "value": "Lang"
        }
    ],
    "params": [
        {
            "type": {
                "names": [
                    "*"
                ]
            },
            "description": "The value to check.",
            "name": "value"
        }
    ],
    "returns": [
        {
            "type": {
                "names": [
                    "boolean"
                ]
            },
            "description": "Returns `true` if `value` is an object, else `false`."
        }
    ],
    "examples": [
        "isObject({})\r// => true\r\risObject([1, 2, 3])\r// => true\r\risObject(Function)\r// => true\r\risObject(null)\r// => false"
    ],
    "name": "isObject",
    "longname": "isObject",
    "kind": "function",
    "scope": "global",
    "___id": "T000002R000480",
    "___s": true,
    "filepath": "isObject.js"
}