Update object by mapping differences in order. Comes handy for organizing state updating.
let prop = let state = propA: 0 propB: 1 propC: 'foo' propD: 'bar' // {propB: 1, propC: ['foo']}
Related
- obj-map-prop − map object properties by a dict
- map-obj − map properties by single function
- filter-obj − filter properties by single function
Credits
© 2017 Dima Yv. MIT License