(array)
| 487 | return flat |
| 488 | |
| 489 | function _flatten (array) { |
| 490 | for (let i = 0; i < array.length; i++) { |
| 491 | const item = array[i] |
| 492 | if (Array.isArray(item)) { |
| 493 | _flatten(item) |
| 494 | } else { |
| 495 | flat.push(item) |
| 496 | } |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | function _flattenRectangular (array) { |
| 501 | if (Array.isArray(array[0])) { |
no outgoing calls
no test coverage detected
searching dependent graphs…