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

Function parsePath

static/vuejs/vue.runtime.common.js:380–392  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

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

Callers 1

WatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected