docs/demo.js
function(obj) {
            if (typeof obj === "object") {
                if (Array.isArray(obj) && obj.length > 1) {
                    obj = '[ '+toString(obj[0])+', ... ]';
                }
            }
            return (obj+'');
        }
function(obj) {
            if (typeof obj === "object") {
                if (Array.isArray(obj) && obj.length > 1) {
                    obj = '[ '+toString(obj[0])+', ... ]';
                }
            }
            return (obj+'');
        }
function ( obj ) { if ( typeof obj === "object" ) { if ( Array . isArray ( obj ) && obj . length > 1 ) { obj = '[ ' + toString ( obj [ 0 ] ) + ', ... ]' ; } } return ( obj + '' ) ; }
hijack console.debug to echo to a DOM element
hijack console . debug to echo to a DOM element