https://ramdajs.com/docs/#testz
test String
RegExp → String → Boolean
Parameters
Added in v0.12.0
Determines whether a given string matches a given regular expression.
See also match.
R.test(/^x/, 'xyz'); //=> true
R.test(/^y/, 'xyz'); //=> false
This code tells you if a given sentence contains “Bobo”, regardless of case. Refactor it to be point-free.
https://ramdajs.com/docs/#test
// Uncommenting this import may help :D
import R from 'ramda';
// const countBobos = (sentence) => /bobo/ig.test(sentence);
const countBobos = R.test(/bobo/ig)