node-object-mapper icon indicating copy to clipboard operation
node-object-mapper copied to clipboard

Question: keys with the same name

Open Ali-sharafi-git opened this issue 4 years ago • 1 comments

Hi Is there a way to avoid writing big map objects by excluding keys with same name in source and dest? eg

const  source ={
foo: 1,
bar:2,
baz:3
}

const dest = {
foo : null,
bar: null,
x: null,
y: null
}

My expectation is an empty map object would return a dest object with keys foo and bar

Thanks

Ali-sharafi-git avatar Oct 17 '21 17:10 Ali-sharafi-git

I wanted to ask the same question! Have you found solution? @Ali-sharafi-git? Maybe someone will advise similar library?

jonnymony avatar Aug 15 '22 11:08 jonnymony