UNPKG

@jovian/type-tools

Version:

TypeTools is a Typescript library for providing extensible tooling runtime validations and type helpers.

22 lines 559 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pathNavigate = void 0; function pathNavigate(path, store) { if (!path || !store) { return store; } var at = store; for (var _i = 0, path_1 = path; _i < path_1.length; _i++) { var pathname = path_1[_i]; at = at[pathname]; if (at === undefined) { break; } } if (at === undefined) { return null; } return at; } exports.pathNavigate = pathNavigate; //# sourceMappingURL=node-util.js.map