map-values-deep-lodash

Map/rename object values recursively with Lodash as the only dependency.

Usage no npm install needed!

<script type="module">
  import mapValuesDeepLodash from 'https://cdn.skypack.dev/map-values-deep-lodash';
</script>

README

map-keys-deep-lodash

Build Status

Map JS object values recursively.

Install

Install with npm

$ npm i map-values-deep-lodash --save

Usage

const mapValuesDeep = require("map-values-deep-lodash");

mapValuesDeep({a: 1, b: 2, c: {d: 3, e: 4}}, value => (2 * value));
// -> {a: 2, b: 4, c: {d: 6, e: 8}}

Dependencies

Author

License

Released under the MIT license.