MCPcopy Create free account
hub / github.com/TruthHun/BookStack / parsePath

Function parsePath

static/vuejs/vue.runtime.esm.js:378–390  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

376 */
377var bailRE = /[^\w.$]/;
378function parsePath (path) {
379 if (bailRE.test(path)) {
380 return
381 }
382 var segments = path.split('.');
383 return function (obj) {
384 for (var i = 0; i < segments.length; i++) {
385 if (!obj) { return }
386 obj = obj[segments[i]];
387 }
388 return obj
389 }
390}
391
392/* */
393/* globals MutationObserver */

Callers 1

WatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected