_.isElement

_.isElement(value)

Checks if value is likely a DOM element.

Since

0.1.0

Arguments

  1. value (*): The value to check.

Returns

(boolean): Returns true if value is a DOM element, else false.

Example

_.isElement(document.body);
// => true
 
_.isElement('<body>');
// => false
doc_Lodash
2016-11-27 16:37:59
Comments
Leave a Comment

Please login to continue.