MCPcopy
hub / github.com/lodash/lodash / isElement

Function isElement

lodash.js:11541–11543  ·  view source on GitHub ↗

* Checks if `value` is likely a DOM element. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`. * @example * * _.isElement(do

(value)

Source from the content-addressed store, hash-verified

11539 * // => false
11540 */
11541 function isElement(value) {
11542 return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
11543 }
11544
11545 /**
11546 * Checks if `value` is an empty object, collection, map, or set.

Callers

nothing calls this directly

Calls 2

isObjectLikeFunction · 0.85
isPlainObjectFunction · 0.85

Tested by

no test coverage detected