lens.over

0.0.1-alpha.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lens.over

Weekly Downloads

0

Version

0.0.1-alpha.2

License

MIT

Last publish

Collaborators

  • alvinsj