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

Method fromGridJson

external/.scrollLibs.js:17639–17645  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

17637 return this.serializedParticleToParticle(JSON.parse(str))
17638 }
17639 static fromGridJson(str) {
17640 const lines = JSON.parse(str)
17641 const language = new Particle()
17642 const atomDelimiter = language.atomBreakSymbol
17643 const particleDelimiter = language.particleBreakSymbol
17644 return new Particle(lines.map(line => line.join(atomDelimiter)).join(particleDelimiter))
17645 }
17646 static fromSsv(str) {
17647 return this.fromDelimited(str, " ", '"')
17648 }

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected