lens.view

0.0.1-alpha.2 • Public • Published

lens.view

Following implementation of ramda.view

example

const helloWorld = {hello: [{place: 'singapore'}]}
 
const lensPath = ['hello', 0, 'place'];
const where = view(lensPath, helloWorld);
 
console.log(where); // 'singapore'

Readme

Keywords

none

Package Sidebar

Install

npm i lens.view

Weekly Downloads

0

Version

0.0.1-alpha.2

License

MIT

Last publish

Collaborators

  • alvinsj