🌳
pt0/sharedF/moDashF/mergeConcatAF.mts
1import * as _ from 'lodash-es'
3export const mergeConcatA = (...props: object[]) => _.mergeWith({}, ...props, (a : object, b : object) => {
4 // like _.mergeWith but union's arrays
5 if (_.isArray(a) && _.isArray(b)) {
6 return _.union(a, b)
7 }
8})