These are chat archives for ramda/ramda

30th
Mar 2019
wangzengdi
@adispring
Mar 30 05:42
@Emilios1995
const itemsWithCount = 
  R.converge(R.mergeRight, [R.identity, ({ items }) => ({ itemsCount: items.length })])
// or
const itemsWithCount = 
  R.converge(R.mergeRight, [R.identity, R.applySpec({ itemsCount: R.path(['items', 'length']) })])