wankdanker / node-object-mapper

Copy properties from one object to another.
MIT License
277 stars 73 forks source link

Passthrough properties that are not provided in the map #96

Open danieldramkroger opened 1 year ago

danieldramkroger commented 1 year ago

Currently I have to map a large collection of objects, but only a few keys need to be mapped to new properties, it would be nice to be able to have existing object keys in the object that are unaffected when you don't specify them in the map. Maybe allow a third param into the merge function to set mutation=true|false?