These are chat archives for ramda/ramda

24th
Feb 2018
Neeraj Singh
@neerajdotname
Feb 24 2018 00:46
I can use assoc twice to get the work done. Is there a better way so that in operation I could get the work done.
searchParams = R.assoc('selectedStatuses', statuses, searchParams);
searchParams = R.assoc('clientName', searchParams.client_name, searchParams );
Joey Figaro
@joeyfigaro
Feb 24 2018 16:40
Thanks for all the extra help, guys
Francisco
@franciscotln
Feb 24 2018 19:46

I think apply(objOf) avoids the converge stuff

const buildNotes = R.map(R.pipe(
  R.props(['Id', 'Notes__r']),
  R.apply(R.objOf))
);

And piping inside one map instead of 2 maps iterating twice over the collection

@joeyfigaro
Joey Figaro
@joeyfigaro
Feb 24 2018 23:13
thanks @franciscotln :)