Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
lodash merge array of objects without duplicates
Jamie Canada
Programming language:
TypeScript
2021-03-06 23:16:53
0
Q:
lodash merge array of objects without duplicates
Gerard H. Pille
Code:
TypeScript
2021-08-15 05:08:49
var c = _.map(a, function(obj) { return _.assign(obj, _.find(b, {parentId: obj.aId})); })
0
Tags
object
array
objects
Related
concat 2 arrays ignoring duplicate in typescript
New to Communities?
Join the community