UNPKG

@bookbox/core

Version:

Bookbox — e-book format

8 lines (7 loc) 292 B
"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;