You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Check if argument is a HTML element. * * @param {Object} value * @return {Boolean} */exports.node=function(value){returnvalue!==undefined&&valueinstanceofHTMLElement&&value.nodeType===1;};/** * Check if argument is a list of HTML elements. * * @param {Object} value * @return {Boolean} */exports.nodeList=function(value){vartype=Object.prototype.toString.call(value);returnvalue!==undefined&&(type==='[object NodeList]'||type==='[object HTMLCollection]')&&('length'invalue)&&(value.length===0||exports.node(value[0]));};/** * Check if argument is a SVG element. * * @param {Object} value * @return {Boolean} */exports.svg=function(value){returnvalue!==undefined&&valueinstanceofSVGElement;};/** * Check if argument is a string. * * @param {Object} value * @return {Boolean} */exports.string=function(value){returntypeofvalue==='string'||valueinstanceofString;};/** * Check if argument is a function. * * @param {Object} value * @return {Boolean} */exports.fn=function(value){vartype=Object.prototype.toString.call(value);returntype==='[object Function]';};
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: