var arrKeys = [{a:1},{b:6}];
var searchFilters = [{a:44}];
var d = arrKeys.reduce((acc, val) => {
acc = Object.assign(acc,val)
return acc;
}, {})
reduce数组和json之间的操作
var arrKeys = [{a:1},{b:6}];
var searchFilters = [{a:44}];
var d = arrKeys.reduce((acc, val) => {
acc = Object.assign(acc,val)
return acc;
}, {})
reduce数组和json之间的操作