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

Method _setFromObject

external/.scrollLibs.js:16565–16572  ·  view source on GitHub ↗
(content, circularCheckArray)

Source from the content-addressed store, hash-verified

16563 return this._setFromObject(content, circularCheckArray)
16564 }
16565 _setFromObject(content, circularCheckArray) {
16566 for (let cue in content) {
16567 if (!content.hasOwnProperty(cue)) continue
16568 // Branch the circularCheckArray, as we only have same branch circular arrays
16569 this._appendFromJavascriptObjectTuple(cue, content[cue], circularCheckArray.slice(0))
16570 }
16571 return this
16572 }
16573 // todo: refactor the below.
16574 _appendFromJavascriptObjectTuple(cue, content, circularCheckArray) {
16575 const type = typeof content

Callers 1

_setSubparticlesMethod · 0.95

Calls 2

sliceMethod · 0.80

Tested by

no test coverage detected