(val, paths, path)
| 3338 | } |
| 3339 | |
| 3340 | function _pushNestedArrayPaths(val, paths, path) { |
| 3341 | if (val != null) { |
| 3342 | const numElements = val.length; |
| 3343 | for (let j = 0; j < numElements; ++j) { |
| 3344 | if (Array.isArray(val[j])) { |
| 3345 | _pushNestedArrayPaths(val[j], paths, path + '.' + j); |
| 3346 | } else { |
| 3347 | if (Array.isArray(paths)) { |
| 3348 | paths.push(path + '.' + j); |
| 3349 | } else { |
| 3350 | // Set |
| 3351 | paths.add(path + '.' + j); |
| 3352 | } |
| 3353 | } |
| 3354 | } |
| 3355 | } |
| 3356 | } |
| 3357 | |
| 3358 | /*! |
| 3359 | * ignore |
no test coverage detected