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.

  1. R.test(/^x/, 'xyz'); //=> true
  2. 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

  1. // Uncommenting this import may help :D
  2. import R from 'ramda';
  3. // const countBobos = (sentence) => /bobo/ig.test(sentence);
  4. const countBobos = R.test(/bobo/ig)