These are chat archives for ramda/ramda

12th
Mar 2018
Brad Compton (he/him)
@Bradcomp
Mar 12 2018 15:25
pipe(
  groupBy(head),
  map(last),
  values
)
Would that work?
sitty
@sitty
Mar 12 2018 19:22
why does the R.toString method insert a extra set of quotes when called with a date compared to the navtive toString method?
For example R.toString returns \"2018-03-11T17:30:34.929Z\" as opposed to 2018-03-11T17:30:34.929Z using the native toString method. https://goo.gl/sUxsG6. I'm trying to get remove the time part from the date and quotes at the beginning is messing it date for me.
Brad Compton (he/him)
@Bradcomp
Mar 12 2018 20:00

If your original data type is a string, it will insert the quotes to preserve the following law whenever possible (not always possible though):

eval(toString(x)) == x