(arr, properties, printedObjects)
| 125 | } |
| 126 | |
| 127 | function formatArray(arr, properties, printedObjects) { |
| 128 | const formattedArray = []; |
| 129 | for (const [key, value] of arr.entries()) { |
| 130 | if (printedObjects.has(value)) |
| 131 | formattedArray[key] = '[Circular]'; |
| 132 | else |
| 133 | formattedArray[key] = prettyPrint(value, properties?.children[key]); |
| 134 | } |
| 135 | return `[${formattedArray.join(', ')}]`; |
| 136 | } |
| 137 | |
| 138 | function formatDate(date) { |
| 139 | return date.toISOString(); |
no test coverage detected