MCPcopy
hub / github.com/josdejong/mathjs / _flattenRectangular

Function _flattenRectangular

src/utils/array.js:500–510  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

498 }
499
500 function _flattenRectangular (array) {
501 if (Array.isArray(array[0])) {
502 for (let i = 0; i < array.length; i++) {
503 _flattenRectangular(array[i])
504 }
505 } else {
506 for (let i = 0; i < array.length; i++) {
507 flat.push(array[i])
508 }
509 }
510 }
511}
512
513/**

Callers 1

flattenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…