(obj, maxDepth)
| 2639 | } |
| 2640 | |
| 2641 | function toDebugString(obj, maxDepth) { |
| 2642 | if (typeof obj === 'function') { |
| 2643 | return obj.toString().replace(/ \{[\s\S]*$/, ''); |
| 2644 | } else if (isUndefined(obj)) { |
| 2645 | return 'undefined'; |
| 2646 | } else if (typeof obj !== 'string') { |
| 2647 | return serializeObject(obj, maxDepth); |
| 2648 | } |
| 2649 | return obj; |
| 2650 | } |
| 2651 | |
| 2652 | /* global angularModule: true, |
| 2653 | version: true, |
no test coverage detected