MCPcopy Create free account
hub / github.com/breck7/scroll / _getMatrix

Method _getMatrix

external/.scrollLibs.js:16375–16385  ·  view source on GitHub ↗
(columns)

Source from the content-addressed store, hash-verified

16373 return this._toDelimited(delimiter, header, escapeSpecialChars ? atomFn : str => str)
16374 }
16375 _getMatrix(columns) {
16376 const matrix = []
16377 this.forEach(subparticle => {
16378 const row = []
16379 columns.forEach(col => {
16380 row.push(subparticle.get(col))
16381 })
16382 matrix.push(row)
16383 })
16384 return matrix
16385 }
16386 _toArrays(columnNames, atomFn) {
16387 const skipHeaderRow = 1
16388 const header = columnNames.map((columnName, index) => atomFn(columnName, 0, index))

Callers 2

_getTypesMethod · 0.95

Calls 2

forEachMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected