lens.over
v0.0.1-alpha.2
Published
over(lens, fn, data)
Downloads
2
Readme
lens.over
Following implementation of ramda.over
example
const helloWorld = {hello: [{place: 'world'}]}
const lensPath = ['hello', 0, 'place'];
const helloBigWorld = over(lensPath, (i) => i.toUpperCase(), helloWorld);
console.log(helloBigWorld); // {hello: [{place: 'WORLD'}]}
console.log(helloWorld === helloBigWorld); // false