We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 079a692 commit b991abeCopy full SHA for b991abe
utils/editors/js-console/html/output-console/v2.0/output-console-v2.0.html
@@ -744,7 +744,7 @@
744
745
// Prevent circular references
746
if(typeof val==='object' || typeof val==='function'){
747
- if(seen.has(val))return '[Circular]';
+ if(seen.has(val))return '[ Circular ]';
748
seen.add(val);
749
}
750
@@ -764,7 +764,9 @@
764
var type = datatype(val);
765
console.log('format.fn',type);
766
if(type=='array'){
767
- return '['+val.map(v=>fn(v,seen)).join(', ')+']';
+ val = val.map(v=>fn(v,seen));
768
+ var str = val.join(', ')
769
+ return '['+str+']';
770
771
772
if(type=='date'){//val instanceof Date){
0 commit comments