isElement

Lang
since 0.1.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is a DOM element, else `false`.

Checks if value is likely a DOM element.

Example of Lodash _.isElement

_.isElement(document.body);
// => true

_.isElement('<body>');
// => false