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

Method arrayToEncodedString

external/.tableSearch.js:49–51  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

47 .join(this.grammar.rowDelimiter)
48 }
49 arrayToEncodedString(arr) {
50 return arr.map(line => line.map(cell => this.encodeCell(cell)).join(this.grammar.columnDelimiter)).join(this.grammar.rowDelimiter)
51 }
52 get array() {
53 return this.uriEncodedString.split(this.grammar.rowDelimiter).map(line => line.split(this.grammar.columnDelimiter).map(cell => this.decodeCell(cell)))
54 }

Callers 1

constructorMethod · 0.95

Calls 3

encodeCellMethod · 0.95
mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected