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

Function parsePath

static/vuejs/vue.esm.js:382–394  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

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

Callers 1

WatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected