All Projects → odynvolk → map-keys-deep-lodash

odynvolk / map-keys-deep-lodash

Licence: MIT license
Map/rename keys recursively with Lodash

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to map-keys-deep-lodash

Performance Analysis Js
Map/Reduce/Filter/Find Vs For loop Vs For each Vs Lodash vs Ramda
Stars: ✭ 532 (+3225%)
Mutual labels:  map, lodash
Get Value
Use property paths (`a.b.c`) get a nested value from an object.
Stars: ✭ 194 (+1112.5%)
Mutual labels:  deep, lodash
underscore.haz
🔍 _.haz() is like _.has() but this underscore and/or lodash mixin lets you do deep object key existence checking with a dot denoted string, for example 'a.b.c'
Stars: ✭ 13 (-18.75%)
Mutual labels:  deep, lodash
Collectable
High-performance immutable data structures for modern JavaScript and TypeScript applications. Functional interfaces, deep/composite operations API, mixed mutability API, TypeScript definitions, ES2015 module exports.
Stars: ✭ 233 (+1356.25%)
Mutual labels:  map, deep
react-map-gl-cluster
Urbica React Cluster Component for Mapbox GL JS
Stars: ✭ 27 (+68.75%)
Mutual labels:  map
school-finder
👀 Find schools by location
Stars: ✭ 16 (+0%)
Mutual labels:  map
nyc-crash-mapper
React Redux web application for viewing, filtering, & comparing trends of automobile collision data published by the NYPD.
Stars: ✭ 15 (-6.25%)
Mutual labels:  map
gobaidumap
百度地图接口调用 golang 版。支持GEO、地址双向获取,IP获取地址。Baidu Map for golang.
Stars: ✭ 38 (+137.5%)
Mutual labels:  map
gameplate
🎮 Boilerplate for creating game with WebGL & Redux 🎲
Stars: ✭ 39 (+143.75%)
Mutual labels:  lodash
pdq evaluation
Evaluation code for using probabilistic detection quality (PDQ) measure for probabilistic object detection tasks. Currently supports COCO and robotic vision challenge (RVC) data.
Stars: ✭ 34 (+112.5%)
Mutual labels:  map
youmightnotneed
🤯 A collection of `You might not need ${something}` resources
Stars: ✭ 131 (+718.75%)
Mutual labels:  lodash
Indoor-navigation
小蓝地图Android端:室内地图+定位+导航
Stars: ✭ 73 (+356.25%)
Mutual labels:  map
ExtApp
ExtApp是一个基于三层架构,使用NHibernate、API Controller和ExtJs创建的,用于简化政府和企业应用开发的Web应用程序框架。
Stars: ✭ 14 (-12.5%)
Mutual labels:  map
vaguely-rude-places
The map of Vaguely Rude Place Names
Stars: ✭ 19 (+18.75%)
Mutual labels:  map
Protobuf-Dreamer
A tiled DeepDream project for creating any size of image, on both CPU and GPU
Stars: ✭ 39 (+143.75%)
Mutual labels:  deep
php-lodash
php-lodash is a PHP utility library, similar to Underscore/Lodash.
Stars: ✭ 35 (+118.75%)
Mutual labels:  lodash
farmOS-map
farmOS Map is an OpenLayers wrapper library designed for agricultural mapping needs. It can be used in any project that has similar requirements.
Stars: ✭ 18 (+12.5%)
Mutual labels:  map
mapgen
map generator stuff
Stars: ✭ 26 (+62.5%)
Mutual labels:  map
city-of-doors
The Map of Sigil, City of Doors
Stars: ✭ 40 (+150%)
Mutual labels:  map
s60-maps
Yet another maps for Symbian OS
Stars: ✭ 27 (+68.75%)
Mutual labels:  map

map-keys-deep-lodash

Map/rename keys recursively

Sometimes we need to map keys from an object recursively. map-keys-deep-lodash solves this and uses only lodash as external dependency.

The code for this module uses new features in the Javascript language, but the code is transpiled by Babel to ES2015 so most projects who needs it should be able to use it.

Install

Install with npm

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

Usage

const mapKeysDeep = require("map-keys-deep-lodash");

mapKeysDeep({a: "b", c: "d", e: {c: "f", g: {c: "h"}}}, (value, key) => {
  if (key === "c") {
    return "zzz";
  }

  return key;
});
//=> {a: "b", zzz: "d", e: {zzz: "f", g: {zzz: "h"}}}

Related projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

License

Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].