(preview: Protocol.Runtime.ObjectPreview)
| 108 | } |
| 109 | |
| 110 | function arrayLength(preview: Protocol.Runtime.ObjectPreview): number { |
| 111 | const match = preview.description?.match(/[[(](\d+)[\])]$/); |
| 112 | return match ? Number(match[1]) : 0; |
| 113 | } |
| 114 | |
| 115 | function formatArrayItems(preview: Protocol.Runtime.ObjectPreview): string[] { |
| 116 | const length = arrayLength(preview); |
no outgoing calls
no test coverage detected