deep-map-keys
deep-map-keys copied to clipboard
Transforms nested keys of complex objects
Currently, the keys of every non-primitive object are transformed recursively. In some cases, users may not want transform certain objects, such as `Date` objects (see issue #7). There should be...
The library appears to strip dates from the values of the object. `let thing = {time:new Date()}; let transformed = deepMapKeys(thing, item=>item); console.log(thing); console.log(transformed);` The "time" value comes back blank.
Implements feature for issue #9, provides possible fix for issue #7 We were seeing an issue where this library was invalidating Date and other built-in Javascript objects. This option will...
deep-map-keys has slow performance on geojson documents with long list of coordinates. Example which shows the issue: ```javascript // test.js _ = require('lodash'); dmk = require('deep-map-keys'); // Simulate huge geojson...
Fixes an error that was causing the replace of ArrayBuffer values with empty objects.
@mcmath thanks for this library! Came across an issue we're hitting - if this library called over any objects created with `Object.create(null)`, then an error is thrown because of this...