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

Function parsePath

static/vuejs/vue.common.js:384–396  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

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

Callers 1

WatcherFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected