This method is like `isArrayLike` except that it also checks if `value` is an object.
isArrayLikeObject([1, 2, 3])
// => true
isArrayLikeObject(document.body.children)
// => true
isArrayLikeObject('abc')
// => false
isArrayLikeObject(Function)
// => false
Name | Type | Attribute | Description |
---|---|---|---|
value | The value to check. |
{ "comment": "/**\r\n * This method is like `isArrayLike` except that it also checks if `value`\r\n * is an object.\r\n *\r\n * @since 4.0.0\r\n * @category Lang\r\n * @param {*} value The value to check.\r\n * @returns {boolean} Returns `true` if `value` is an array-like object,\r\n * else `false`.\r\n * @example\r\n *\r\n * isArrayLikeObject([1, 2, 3])\r\n * // => true\r\n *\r\n * isArrayLikeObject(document.body.children)\r\n * // => true\r\n *\r\n * isArrayLikeObject('abc')\r\n * // => false\r\n *\r\n * isArrayLikeObject(Function)\r\n * // => false\r\n */", "meta": { "range": [ 601, 691 ], "filename": "isArrayLikeObject.js", "lineno": 27, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100004266", "name": "isArrayLikeObject", "type": "FunctionDeclaration", "paramnames": [ "value" ] } }, "description": "This method is like `isArrayLike` except that it also checks if `value`\ris an object.", "since": "4.0.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 array-like object,\r else `false`." } ], "examples": [ "isArrayLikeObject([1, 2, 3])\r// => true\r\risArrayLikeObject(document.body.children)\r// => true\r\risArrayLikeObject('abc')\r// => false\r\risArrayLikeObject(Function)\r// => false" ], "name": "isArrayLikeObject", "longname": "isArrayLikeObject", "kind": "function", "scope": "global", "___id": "T000002R000426", "___s": true, "filepath": "isArrayLikeObject.js" }