(value, prefix, prefixWithName)
| 66 | var lines = []; |
| 67 | |
| 68 | function dumpValue(value, prefix, prefixWithName) { |
| 69 | if (typeof value === "object" && value !== null) { |
| 70 | if (value instanceof Array) |
| 71 | dumpItems(value, prefix, prefixWithName); |
| 72 | else |
| 73 | dumpProperties(value, prefix, prefixWithName); |
| 74 | } else { |
| 75 | lines.push(prefixWithName + String(value).replace(/\n/g, " ")); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | function dumpProperties(object, prefix, firstLinePrefix) { |
| 80 | prefix = prefix || ""; |
no test coverage detected
searching dependent graphs…