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

Method remap

external/.scrollLibs.js:17232–17238  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

17230 }
17231 // Does not recurse.
17232 remap(map) {
17233 this.forEach(particle => {
17234 const cue = particle.cue
17235 if (map[cue] !== undefined) particle.setCue(map[cue])
17236 })
17237 return this
17238 }
17239 rename(oldCue, newCue) {
17240 this._rename(oldCue, newCue)
17241 return this

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.95
setCueMethod · 0.80

Tested by

no test coverage detected