UNPKG

@skele/config

Version:

Skele package that provides the posibility to define a custom configuration

10 lines (8 loc) 225 B
import * as R from 'ramda' export default function deepMerge(a = {}, b = {}) { return R.is(Array, b) && !R.is(Object, b[0]) ? b : R.is(Object, a) && R.is(Object, b) ? R.mergeWith(deepMerge, a, b) : b }