function isRegExp(value) {
  return toString.call(value) === '[object RegExp]';
}
Determines if a value is a regular expression object.

@private
@param {*} value Reference to check.
@returns {boolean} True if `value` is a `RegExp`.