mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
24
react-app/node_modules/lodash/lang/isElement.js
generated
vendored
Normal file
24
react-app/node_modules/lodash/lang/isElement.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
var isObjectLike = require('../internal/isObjectLike'),
|
||||
isPlainObject = require('./isPlainObject');
|
||||
|
||||
/**
|
||||
* Checks if `value` is a DOM element.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Lang
|
||||
* @param {*} 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
|
||||
*/
|
||||
function isElement(value) {
|
||||
return !!value && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);
|
||||
}
|
||||
|
||||
module.exports = isElement;
|
Reference in New Issue
Block a user