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

Method select

external/.scrollLibs.js:15855–15866  ·  view source on GitHub ↗
(columnNames)

Source from the content-addressed store, hash-verified

15853 }
15854 // todo: preserve subclasses!
15855 select(columnNames) {
15856 columnNames = Array.isArray(columnNames) ? columnNames : [columnNames]
15857 const result = new Particle()
15858 this.forEach(particle => {
15859 const newParticle = result.appendLine(particle.getLine())
15860 columnNames.forEach(name => {
15861 const valueParticle = particle.getParticle(name)
15862 if (valueParticle) newParticle.appendParticle(valueParticle)
15863 })
15864 })
15865 return result
15866 }
15867 selectionToString() {
15868 return this.getSelectedParticles()
15869 .map(particle => particle.toString())

Callers 15

selectInputFunction · 0.80
.scrollLibs.jsFile · 0.80
copyTextToClipboardMethod · 0.80
.datatables.jsFile · 0.80
axisFunction · 0.80
selection_selectChildFunction · 0.80
selection_appendFunction · 0.80
selection_insertFunction · 0.80
selection_cloneFunction · 0.80
moFunction · 0.80
PoFunction · 0.80
slFunction · 0.80

Calls 5

forEachMethod · 0.95
appendLineMethod · 0.95
appendParticleMethod · 0.80
getLineMethod · 0.45
getParticleMethod · 0.45

Tested by

no test coverage detected