1.0.0 • Published 6 years ago

create-lenses v1.0.0

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

This project is inspired by:

Thinking in Ramda Lenses Zooming in to Lenses Ramda

This library provides the ability to create lenses over objects only One can use the functions prop and path to create getters over objects and the functions assoc and assocPath to create getters over them.

The functions lens , lensProp and lensPath can be used to create lenses with the latter two being conveniance options.

Once a lens has been created one can use the functions view, set and over to get, set and update the value of a property immutably