code: function regexpEqual(a, b) {
    if ('regexp' !== type(b)) return false;
    return sameValue(a.toString(), b.toString());
  }
docs: /*!
  Compare two regular expressions by converting them
  to string and checking for `sameValue`.
  
  @param {RegExp} a
  @param {RegExp} b
  @return {Boolean} result