GitShow/sindresorhus/map-obj
sindresorhus

map-obj

Map object keys and values into a new object

by sindresorhus
Star on GitHubForknpm

JavaScript

217 stars42 forks11 contributorsQuiet · 11mo agoSince 2014v6.0.0MIT

Meet the team

See all 11 on GitHub →
sindresorhus
sindresorhus42 contributions
bendrucker
bendrucker2 contributions
Richienb
Richienb2 contributions
ninevra
ninevra2 contributions
coreyfarrell
coreyfarrell1 contribution
BendingBender
BendingBender1 contribution
gr2m
gr2m1 contribution
jamestalmage
jamestalmage1 contribution

Languages

View on GitHub →
JavaScript78.4%
TypeScript21.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
quentin-sensome
Add support for Symbols as keysClosedIssue

Currently symbol properties are ignored. Is it possible to add the option to preserve and iterate over them? The filter-obj library currently has support for it using

quentin-sensome · 11mo ago
J4CKVVH173
Problem with recurse nested objects ClosedIssue

I found that if you have a Blob instance or File instance within object which passed in and deep is true the function will go inside this objects. I guess it is not correct because Blob and File are js's special objects and this logic breaks them. If you add a simple check like !(value instanceof Blob) here that will fix this problem. I can create PR.

J4CKVVH173 · 11mo ago
leonardoraele
[BUG] Incorrect `source` argument passed to the `mapper` functionClosedIssue

Right now, the argument passed to the function is not the actual original argument the user passed to , but the "owner" object of the key/value pair for the current iteration. Example: Notice is only equal to for the top level keys. Fixing this would be a breaking change, so should probably be released as ?

leonardoraele · 11mo ago
Structured data for AI agents

Repository: sindresorhus/map-obj. Description: Map object keys and values into a new object Stars: 217, Forks: 42. Primary language: JavaScript. Languages: JavaScript (78.4%), TypeScript (21.6%). License: MIT. Latest release: v6.0.0 (11mo ago). Open PRs: 0, open issues: 0. Last activity: 11mo ago. Community health: 85%. Top contributors: sindresorhus, bendrucker, Richienb, ninevra, coreyfarrell, BendingBender, gr2m, jamestalmage, faizanu94, rocktimsaikia and others.

·@ofershap

Replace github.com with gitshow.dev