rambda icon indicating copy to clipboard operation
rambda copied to clipboard

mergeDeepRight first parameter does not work with objects containing functions

Open mauriciosoares opened this issue 1 year ago • 0 comments

When using mergeDeepRight, if I pass an object in the first parameter that contains a property that is a funcion, that function is not merged into the final object. Having a function in the second parameter works just fine though, for example:

R.mergeDeepRight({a: () => {}}, {b: () => {}})

This will produce an object with only b as a property containing the function.

Here's a codesandbox example with a few other scenarios: https://codesandbox.io/s/js-playground-forked-okrk5x?file=/src/index.js, that code sample also contains an example of Ramda's mergeDeepRight

mauriciosoares avatar Sep 13 '22 17:09 mauriciosoares