0.0.1-alpha.2 • Published 7 years ago
lens.over v0.0.1-alpha.2
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
0.0.1-alpha.2
7 years ago
0.0.1-alpha.1
7 years ago