calmm-js / partial.lenses

Partial lenses is a comprehensive, high-performance optics library for JavaScript
MIT License
915 stars 36 forks source link

Does not works with Modules object #219

Open ftaiolivista opened 3 years ago

ftaiolivista commented 3 years ago
import { L, types } from './src/index.js'
console.log('lens get', L.get(['customer', 'views', 's'], types))
console.log('standard get', types.customer.views.s)

Output lens get undefined standard get [ 'id', 'erp', 'companyName', 'name', 'surname' ]