Skip to content

Commit e55635c

Browse files
save file
1 parent f4882b2 commit e55635c

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -752,61 +752,61 @@
752752

753753
}//switch
754754

755-
if (Array.isArray(val)) {
756-
return '[' + val.map(v => fn(v, seen)).join(', ') + ']';
755+
if(Array.isArray(val)){
756+
return '['+val.map(v=>fn(v,seen)).join(', ')+']';
757757
}
758758

759-
if (val instanceof Date) {
759+
if(val instanceof Date){
760760
return `Date("${val.toISOString()}")`;
761761
}
762762

763-
if (val instanceof RegExp) {
763+
if(val instanceof RegExp){
764764
return val.toString();
765765
}
766766

767-
if (val instanceof Error) {
767+
if(val instanceof Error){
768768
return `${val.name}: ${val.message}`;
769769
}
770770

771-
if (val instanceof Map) {
771+
if(val instanceof Map){
772772
const entries = [];
773773
for (const [k, v] of val.entries()) {
774774
entries.push(`${fn(k, seen)} => ${fn(v, seen)}`);
775775
}
776776
return `Map { ${entries.join(', ')} }`;
777777
}
778778

779-
if (val instanceof Set) {
780-
const entries = [...val].map(v => fn(v, seen));
779+
if(val instanceof Set){
780+
const entries = [...val].map(v=>fn(v,seen));
781781
return `Set { ${entries.join(', ')} }`;
782782
}
783783

784-
if (ArrayBuffer.isView(val) && !(val instanceof DataView)) {
784+
if(ArrayBuffer.isView(val) && !(val instanceof DataView)){
785785
return `${val.constructor.name} [ ${Array.from(val).join(', ')} ]`;
786786
}
787787

788-
if (val instanceof Node) {
789-
if (val.nodeType === 1) {
790-
return `<${val.tagName.toLowerCase()}>`;
788+
if(val instanceof Node){
789+
if(val.nodeType===1){
790+
return `<${val.tagName.toLowerCase()}>`;
791791
}
792792
return val.toString();
793793
}
794794

795-
if (typeof val === 'object') {
796-
const entries = Object.entries(val).map(([k, v]) => {
795+
if(typeof val==='object'){
796+
const entries = Object.entries(val).map(([k, v])=>{
797797

798798
return `${k}: ${fn(v, seen)}`;
799799

800800
});
801801
return `{ ${entries.join(', ')} }`;
802802
}
803803

804-
try {
804+
try{
805805

806806
return JSON.stringify(val);
807807

808808
}//try
809-
catch {
809+
catch{
810810

811811
return String(val);
812812

0 commit comments

Comments
 (0)