To use the mergeWith()
function from the Lodash library in Typescript, follow these steps:
19 chars2 lines
mergeWith()
function from Lodash:index.ts42 chars2 lines
index.ts84 chars3 lines
index.ts122 chars6 lines
mergeWith()
function with the objects and the customizer function:index.ts122 chars4 lines
The resulting merged object will have all the properties from both objects, with arrays concatenated instead of overwritten.
gistlibby LogSnag