(obj_or_str)
| 527 | } |
| 528 | |
| 529 | stringify(obj_or_str) { |
| 530 | if (typeof obj_or_str === "string" || obj_or_str instanceof String) |
| 531 | return obj_or_str; |
| 532 | else |
| 533 | try { |
| 534 | return JSON.stringify(obj_or_str, null, 2); |
| 535 | } catch (err) { |
| 536 | return "[object Object]"; |
| 537 | } |
| 538 | } |
| 539 | })(name, debug); |
| 540 | } |
| 541 |
no outgoing calls
no test coverage detected