Skip to content

Commit b991abe

Browse files
save file
1 parent 079a692 commit b991abe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/editors/js-console/html/output-console/v2.0/output-console-v2.0.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@
744744

745745
// Prevent circular references
746746
if(typeof val==='object' || typeof val==='function'){
747-
if(seen.has(val))return '[Circular]';
747+
if(seen.has(val))return '[ Circular ]';
748748
seen.add(val);
749749
}
750750

@@ -764,7 +764,9 @@
764764
var type = datatype(val);
765765
console.log('format.fn',type);
766766
if(type=='array'){
767-
return '['+val.map(v=>fn(v,seen)).join(', ')+']';
767+
val = val.map(v=>fn(v,seen));
768+
var str = val.join(', ')
769+
return '['+str+']';
768770
}
769771

770772
if(type=='date'){//val instanceof Date){

0 commit comments

Comments
 (0)