Example 1 — Official concatValues
values joins. thing keeps the right string. Unique keys a and b stay.
const concatValues = (k, l, r) => k == 'values' ? R.concat(l, r) : r;
R.mergeWithKey(concatValues,
{ a: true, thing: 'foo', values: [10, 20] },
{ b: true, thing: 'bar', values: [15, 35] }
);
//=> { a: true, b: true, thing: 'bar', values: [10, 20, 15, 35] } How It Works
The docs use == on the key. That is the sample from ramdajs.com. JSON key order follows left keys first, then right-only b.
