These are chat archives for ramda/ramda

10th
Feb 2015
James Forbes
@JAForbes
Feb 10 2015 11:08
Can you guys tell me some scenarios where you were really close to being point free but an argument or two prevented you?
Danny Arnold
@despairblue
Feb 10 2015 13:54
how about moving the docs to devdocs.io? that way you wouldn't have to implement your own ui for a doc browser.
José Luis Lafuente
@jlesquembre
Feb 10 2015 15:02

I'm writing a sorter function to use it with sort. Now I have this:

var sortBy = R.curry(function(name, a, b){
    if(a[name] < b[name]) return -1;
    else if(a[name] > b[name]) return 1;
    else return 0;
});

I'd like to know if is possible to simplify it using comparator and avoid the if-else