"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getByPath = void 0;
function getByPath(path, obj) {
return path.reduce((elems, name) => { var _a; return (_a = elems[name]) !== null && _a !== void 0 ? _a : {}; }, obj);
}
exports.getByPath = getByPath;