@expo/config-plugins
Version:
A library for Expo config plugins
20 lines (19 loc) • 400 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.get = get;
/** `lodash.get` */
function get(obj, key) {
const branches = key.split('.');
let current = obj;
let branch;
while (branch = branches.shift()) {
if (!(branch in current)) {
return undefined;
}
current = current[branch];
}
return current;
}
//# sourceMappingURL=obj.js.map