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

Method multiply

external/.scrollLibs.js:17717–17723  ·  view source on GitHub ↗
(particleA, particleB)

Source from the content-addressed store, hash-verified

17715 return rows
17716 }
17717 static multiply(particleA, particleB) {
17718 const productParticle = particleA.clone()
17719 productParticle.forEach((particle, index) => {
17720 particle.setSubparticles(particle.length ? this.multiply(particle, particleB) : particleB.clone())
17721 })
17722 return productParticle
17723 }
17724 // Given an array return a particle
17725 static _rowsToParticle(rows, delimiter, hasHeaders) {
17726 const numberOfColumns = rows[0].length

Callers

nothing calls this directly

Calls 3

forEachMethod · 0.80
setSubparticlesMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected