@boost/core
Version:
Robust pipeline for creating dev tools that separate logic into routines and tasks.
15 lines (14 loc) • 450 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Handle special cases when merging 2 configuration values.
* If the target and source are both arrays, concatenate them.
*/
function handleMerge(target, source) {
if (Array.isArray(target) && Array.isArray(source)) {
return Array.from(new Set([...target, ...source]));
}
// Defer to lodash
return undefined;
}
exports.default = handleMerge;