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
functionhasArrayNature(obj){return(// not null/false!!obj&&// arrays are objects, NodeLists are functions in Safari(typeofobj=='object'||typeofobj=='function')&&// quacks like an array('length'inobj)&&// not window!('setInterval'inobj)&&// no DOM node should be considered an array-like// a 'select' element has 'length' and 'item' properties on IE8(typeofobj.nodeType!='number')&&(// a real array(// HTMLCollection/NodeList(Array.isArray(obj)||// arguments('callee'inobj)||'item'inobj))));}
After compiling, it results into the following code:
functionhasArrayNature(obj){return// not null/false!!obj&&(typeofobj=='object'||typeofobj=='function')&&'length'inobj&&// not window!('setInterval'inobj)&&typeofobj.nodeType!='number'&&(Array.isArray(obj)||'callee'inobj||'item'inobj);}
So in all the situations this function returns undefined
I dealt with it by passing to admclean
'esprima': {'comment': false}
I don't know if this is a bug in Esprima or in Amdclean, anyway I guess it should be fixed.
The text was updated successfully, but these errors were encountered:
React.js has a following function:
After compiling, it results into the following code:
So in all the situations this function returns
undefined
I dealt with it by passing to admclean
I don't know if this is a bug in Esprima or in Amdclean, anyway I guess it should be fixed.
The text was updated successfully, but these errors were encountered: