Javascript Notes
From Federal Burro of Information
Jump to navigationJump to search
function showattrs(theObject) { var out="<pre>" for (var attr in theObject) { out+=attr+":"+ theObject[attr]+"\n" } out+="</pre>" var block = document.getElementById("showattrs") block.innerHTML=out }
if ( console && console.log ) { console.log( "Sample of data:", data.slice( 0, 100 ) ); }
for ( var key in keys(data).sort) { elem.html = elem.html . key; }
Also see jquery notes
ON TCP
old bug: https://github.com/nodejs/node-v0.x-archive/issues/9066 - good exmaples
reference: https://nodejs.org/api/net.html#net_event_close
on tcp in general: https://www.joyent.com/blog/tcp-puzzlers