map-values-deep

v1.0.2
Recursive lodash.mapValues
array circular deep json lodash map nested object primitive and 3 more...

map-values-deep

Last version Build Status NPM Status

Recursive lodash.mapKeys

Install

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

Usage

const mapValuesDeep = require('map-values-deep')

const square = (value, key) => value * value

mapValuesDeep({ two: 2, obj: { three: 3, four: 4 }, arr: [5, 6] }, square)
// => { two: 4, obj: { three: 9, four: 16 }, arr: [25, 36] }

License

map-values-deep © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.

kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats

npm i map-values-deep

Metadata

  • MIT
  • >= 8
  • Kiko Beats
  • released 7/11/2019

Downloads

Maintainers