Conditions | 9 |
Paths | 6 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | var DefaultHandlers = [ |
||
14 | any: function (value, expanded) { |
||
15 | var type = typeof value |
||
16 | switch (type) { |
||
1 ignored issue
–
show
|
|||
17 | case 'function': |
||
18 | return value.name ? '<Function: ' + value.name + '>' : '<Function>' |
||
19 | case 'undefined': |
||
20 | return '<undefined>' |
||
21 | case 'number': |
||
22 | case 'boolean': |
||
23 | case 'string': |
||
24 | case 'symbol': |
||
25 | return value |
||
26 | } |
||
27 | return value instanceof Error ? Renderer.error(value, expanded) : Renderer.object(value, expanded) |
||
28 | }, |
||
29 | /** |
||
62 |