Sometimes, I want to judge the value true or false. R.complement(R.not) can transform truth-y and false-y value to the corresponding Bool value, but a little bit long. So R.toBool is an convenient alias?
const toBool = R.complement(R.not)
there is already function Boolean in js for exactly this purpose
Most helpful comment
there is already function Boolean in js for exactly this purpose