Last 12 weeks · 0 commits
4 of 6 standards met
Repository: sindresorhus/map-obj. Description: Map object keys and values into a new object Stars: 217, Forks: 43. Primary language: JavaScript. Languages: JavaScript (78.4%), TypeScript (21.6%). License: MIT. Latest release: v6.0.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, bendrucker, Richienb, ninevra, coreyfarrell, BendingBender, gr2m, jamestalmage, faizanu94, rocktimsaikia and others.
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.
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 ?