(x)
| 13 | * @return {number[]} size |
| 14 | */ |
| 15 | export function arraySize (x) { |
| 16 | const s = [] |
| 17 | |
| 18 | while (Array.isArray(x)) { |
| 19 | s.push(x.length) |
| 20 | x = x[0] |
| 21 | } |
| 22 | |
| 23 | return s |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Recursively validate whether each element in a multi dimensional array |
no outgoing calls
no test coverage detected
searching dependent graphs…