eslint-config-mocha
Version:
ESLint config for mochajs projects
15 lines (11 loc) • 326 B
JavaScript
var mergeWith = require('lodash.mergewith');
function customizer (objValue, srcValue) {
if (Array.isArray(objValue)) {
return objValue.concat(srcValue);
}
return Object.assign(srcValue, objValue);
}
module.exports = function merge (object, other) {
return mergeWith(object, other, customizer);
};
;