hfg-gmuend / gmynd

A utility library for working with data in Javascript
15 stars 1 forks source link

avoid redundant property in mergeData() #8

Closed caitoor closed 3 years ago

caitoor commented 3 years ago

when merging two arrays with mergeData() using different property names (e.g. "countryCode" in the first array and "alpha3Code" in the second), the resulting array objects will have both properties with the same value. Do we intend to use deleteProps() afterwards or should we change that?

bohnacker commented 3 years ago

I already came across this when testing stuff. Maybe we could just keep the prop name of the first array.

bohnacker commented 3 years ago

Thanks a lot!