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
letcount=((count=0,timer=null)=>()=>{count++;clearTimeout(timer)timer=setTimeout(()=>{console.log(`"if (!obj.hasOwnProperty)" counted:${count}`)},1e3);})()functionfilterKeys(obj,hideFunctions){varkeys=[];for(varbranchinobj){// always exclude anything in the object's prototypeif(!obj.hasOwnProperty)count()if(!obj.hasOwnProperty||!obj.hasOwnProperty(branch)){continue;}// ... and hide any keys mapped to functions if we've been told toif(hideFunctions&&((typeofobj[branch])==="function")){continue;}keys.push(branch);}returnkeys;}
result:
"if (!obj.hasOwnProperty)" counted:71
The text was updated successfully, but these errors were encountered:
err in nodejs http.reques
https://github.com/notatestuser/treeify/blob/master/treeify.js#L32
The text was updated successfully, but these errors were encountered: