Skip to content

Commit c04640a

Browse files
save file
1 parent c5f2273 commit c04640a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -748,27 +748,22 @@
748748

749749
}//switch
750750

751-
// Arrays
752751
if (Array.isArray(val)) {
753752
return '[' + val.map(v => fn(v, seen)).join(', ') + ']';
754753
}
755754

756-
// Date
757755
if (val instanceof Date) {
758756
return `Date("${val.toISOString()}")`;
759757
}
760758

761-
// RegExp
762759
if (val instanceof RegExp) {
763760
return val.toString();
764761
}
765762

766-
// Error objects
767763
if (val instanceof Error) {
768764
return `${val.name}: ${val.message}`;
769765
}
770766

771-
// Map
772767
if (val instanceof Map) {
773768
const entries = [];
774769
for (const [k, v] of val.entries()) {
@@ -777,18 +772,15 @@
777772
return `Map { ${entries.join(', ')} }`;
778773
}
779774

780-
// Set
781775
if (val instanceof Set) {
782776
const entries = [...val].map(v => fn(v, seen));
783777
return `Set { ${entries.join(', ')} }`;
784778
}
785779

786-
// Typed arrays
787780
if (ArrayBuffer.isView(val) && !(val instanceof DataView)) {
788781
return `${val.constructor.name} [ ${Array.from(val).join(', ')} ]`;
789782
}
790783

791-
// DOM nodes
792784
if (val instanceof Node) {
793785
if (val.nodeType === 1) {
794786
return `<${val.tagName.toLowerCase()}>`;
@@ -816,7 +808,7 @@
816808

817809
}//catch
818810

819-
}
811+
}//fn
820812

821813

822814

0 commit comments

Comments
 (0)