@neosjs/cli
Version:
Neos(奈欧斯)是一个帮助开发者快速地创建 Vue3 应用并自动配置项目编译的脚手架
5 lines • 517 B
JavaScript
;const isObject=function(a){return a&&"object"==typeof a},mergeArrayWithDedupe=function(c,a){return Array.from(new Set([...c,...a]))};/**
* Recursively merge the content of the new object to the existing one
* @param {Object} target the existing object
* @param {Object} obj the new object
*/exports.deepMerge=function(a,b){for(const c of Object.keys(b)){const d=a[c],e=b[c];a[c]=Array.isArray(d)&&Array.isArray(e)?mergeArrayWithDedupe(d,e):isObject(d)&&isObject(e)?exports.deepMerge(d,e):e}return a};