DEV Community

Discussion on: Immutability in JavaScript

Collapse
 
stevenlangbroek profile image
Steven Langbroek

Good API inspiration, monocle-ts: github.com/gcanti/monocle-ts

const name = Lens.fromPath<Employee>()(['company', 'address', 'street', 'name'])

name.modify(capitalize)(employee)