You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is because Date is not a primitive, so it tries to go through the values of the Date and transform its keys. This is probably not the behavior most users expect. I'm going to add a feature that allows users to customize whether or not an object gets transformed. I'll probably also change the default behavior so that Date does not get transformed.
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.
The text was updated successfully, but these errors were encountered: