rambda icon indicating copy to clipboard operation
rambda copied to clipboard

All merge functions ignore keys with function values

Open aniederer-chatham opened this issue 2 years ago • 2 comments

Rambda: image

Ramda: image

Also applies to mergeRight, mergeLeft, and mergeDeepLeft

aniederer-chatham avatar Mar 25 '22 20:03 aniederer-chatham

Thanks for filling this issue. I will look into it and get back to you.

selfrefactor avatar Mar 28 '22 07:03 selfrefactor

I added this test:

test('with function inside object', () => {
  const result = mergeRight({a:1}, {b: () => 1})
  expect(typeof result.b).toBe('function')
})

which passes. The issue is related to REPL site, not Rambda's code.

selfrefactor avatar May 09 '22 13:05 selfrefactor

issue is fixed now

selfrefactor avatar Jul 06 '23 14:07 selfrefactor