UNPKG

vue-app-sdk

Version:
14 lines (13 loc) 507 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const _castPath = require("./_castPath.cjs"); const _toKey = require("./_toKey.cjs"); function baseGet(object, path) { path = _castPath.default(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[_toKey.default(path[index++])]; } return index && index == length ? object : void 0; } exports.default = baseGet;