Checks if `value` is likely a DOM element.
isElement(document.body)
// => true
isElement('')
// => false
Name | Type | Attribute | Description |
---|---|---|---|
value | The value to check. |
{ "comment": "/**\r\n * Checks if `value` is likely a DOM element.\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 a DOM element, else `false`.\r\n * @example\r\n *\r\n * isElement(document.body)\r\n * // => true\r\n *\r\n * isElement('')\r\n * // => false\r\n */", "meta": { "range": [ 420, 529 ], "filename": "isElement.js", "lineno": 19, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100004442", "name": "isElement", "type": "FunctionDeclaration", "paramnames": [ "value" ] } }, "description": "Checks if `value` is likely a DOM element.", "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 a DOM element, else `false`." } ], "examples": [ "isElement(document.body)\r// => true\r\risElement('')\r// => false" ], "name": "isElement", "longname": "isElement", "kind": "function", "scope": "global", "___id": "T000002R000440", "___s": true, "filepath": "isElement.js" }