Update key/value pairs in an observ-struct
npm install update-struct> Update key/value pairs in an observ-struct
```
$ npm install --save update-struct
`js`
var updateStruct = require('update-struct')
var Observ = require('observ')
var state = Struct({
foo: Observ(1)
})
updateStruct(state, {foo: 2})
state()
//=> {foo: 2}
#### updateStruct(struct, [data]) -> struct / function
##### struct
Required
Type: function
An observable struct.
##### data
Type: object
The data to use to update the struct. All keys must have already been defined as observables in the struct. If data is omitted, a partially applied function that takes a data` argument will be returned.
MIT © Ben Drucker