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

Method resolveProperty

external/.scrollLibs.js:14384–14387  ·  view source on GitHub ↗
(obj, path, separator = ".")

Source from the content-addressed store, hash-verified

14382 return path.resolve(folder + "/" + filePath)
14383 }
14384 static resolveProperty(obj, path, separator = ".") {
14385 const properties = Array.isArray(path) ? path : path.split(separator)
14386 return properties.reduce((prev, curr) => prev && prev[curr], obj)
14387 }
14388 static appendCodeAndReturnValueOnWindow(code, name) {
14389 const script = document.createElement("script")
14390 script.innerHTML = code

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected