UNPKG

@typed/lenses

Version:

Strongly-typed functional lenses

8 lines 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromPath = void 0; const Lens_1 = require("./Lens"); const pipe2_1 = require("./pipe2"); const PropLens_1 = require("./PropLens"); exports.fromPath = (keys) => keys.reduce((lens, key) => pipe2_1.pipe2(lens, PropLens_1.fromProp(key)), Lens_1.Lens.id()); //# sourceMappingURL=PathLens.js.map