See answers from @Leo and @Joel Gregory for an explanation from the spec. You can display the contents of objects using JSON.stringify
, for example:
var log = Helpers.log2Screen; var obj = { name: 'John' } log(obj.toString()); log('<code>'+JSON.stringify(obj)+'</code>');
<script src="http://kooiinc.imtqy.com/JSHelpers/Helpers-min.js"></script>
source share