function attrStringify(attr) {
  var names = Object.keys(attr);
  var str = '';
  for (var i = 0, l = names.length; i < l; i++) {
    str += names[i] + '="' + attr[names[i]].slice(0, 20) + (attr[names[i]].length > 20 ? '...' : '') + '" ';
  }
  return str;
}
function attrStringify(attr) {
  var names = Object.keys(attr);
  var str = '';
  for (var i = 0, l = names.length; i < l; i++) {
    str += names[i] + '="' + attr[names[i]].slice(0, 20) + (attr[names[i]].length > 20 ? '...' : '') + '" ';
  }
  return str;
}
function attrStringify ( attr ) { var names = Object . keys ( attr ) ; var str = '' ; for ( var i = 0 , l = names . length ; i < l ; i ++ ) { str += names [ i ] + '="' + attr [ names [ i ] ] . slice ( 0 , 20 ) + ( attr [ names [ i ] ] . length > 20 ? '...' : '' ) + '" ' ; } return str ; }
A secret little gem, you can use to print out the subtree :)
A secret little gem you can use to print out the subtree : )