Replace object values with String.prototype.replace
npm install value-replace> Replace object values with String.prototype.replace
```
$ npm install --save value-replace
`js
const valueReplace = require('value-replace');
const obj = {
foo: 'bar'
};
valueReplace(obj, 'bar', 'baz');
//=> {foo: 'baz'}
valueReplace(obj, 'ba', str => str.toUpperCase());
//=> {foo: 'BAr'}
`
Returns a new object.
#### input
Required
Type: object
The object which values will be replaced.
#### search
Required
Type: string or regexp
Search for matching substring that will be replaced.
#### replace
Required
Type: string or function
Replacing the matching substring.
* array-replace - Replace array values with String.prototype.replaceString.prototype.replace`
* key-replace - Replace object key with
MIT © Andreas Gillström