0.0.1-alpha.2 • Published 7 years ago

lens.over v0.0.1-alpha.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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