()
| 117 | const depth = 10; |
| 118 | |
| 119 | function shallowObj() { |
| 120 | return { |
| 121 | shallow: { |
| 122 | firstName: 'Tomek', |
| 123 | lastName: 'Wytrebowicz', |
| 124 | mobileNumbers: [ |
| 125 | { |
| 126 | number: '12345' |
| 127 | }, |
| 128 | { |
| 129 | number: '45353' |
| 130 | } |
| 131 | ] |
| 132 | } |
| 133 | }; |
| 134 | } |
| 135 | const obj = shallowObj(); |
| 136 | const node = obj; |
| 137 | while (depth-- > 0) { |