@dzcode-io/kuliya
Version:
Algeria's college hierarchy dataset as javascript package
12 lines (11 loc) • 496 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNodeByPath = void 0;
var get_1 = __importDefault(require("lodash/fp/get"));
var main_json_1 = __importDefault(require("../_data/main.json"));
exports.getNodeByPath = function (path) {
return get_1.default(path.replace(/\//g, ".children."), main_json_1.default);
};