ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## isElement + [link](./isElement "Link to this entry.") + [source](https://github.com/lodash/lodash/blob/4.5.0正式版/lodash.src.js#L9658 "View in source.") + [npm](https://www.npmjs.com/package/lodash.iselement "See the npm package.") ``` _.isElement(value) ``` 检查 `value` 是否是可能是 DOM 元素 ### 参数 1. value (\*) 要检查的值 ### 返回值 (boolean) 如果是 DOM 元素返回 `true`,否则返回 `false` ### 示例 ``` _.isElement(document.body); // => true _.isElement('<body>'); // => false ```