Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 20x 46x 46x 46x 166x 6x | import isArray from 'lodash/isArray'
import mergeWith from 'lodash/mergeWith'
import tail from 'lodash/tail'
const merge = function () {
const object = arguments[0]
const sources = tail(arguments)
return mergeWith(object, ...sources, (objValue, srcValue) => {
if (isArray(objValue)) {
return srcValue
}
})
}
export default merge
|