(object, path)
| 22 | } |
| 23 | |
| 24 | get(object, path) { |
| 25 | const sections = Array.isArray(path) ? path : path.split('.') |
| 26 | for (let i = 0; i < sections.length; i++) { |
| 27 | object = object[sections[i]] |
| 28 | if (this.isRef(object)) { |
| 29 | object = this.getRefValue(object) |
| 30 | } |
| 31 | if (!object) { |
| 32 | return undefined |
| 33 | } |
| 34 | } |
| 35 | return object |
| 36 | } |
| 37 | |
| 38 | has(object, path, parent = false) { |
| 39 | if (typeof object === 'undefined') { |
no test coverage detected