'use strict';var _export=require('./export-61511812.js'),isRegexp=require('./is-regexp-d6f1551e.js');var notARegexp = function (it) {
  if (isRegexp.i(it)) {
    throw TypeError("The method doesn't accept regular expressions");
  } return it;
};var MATCH = _export.w('match');

var correctIsRegexpLogic = function (METHOD_NAME) {
  var regexp = /./;
  try {
    '/./'[METHOD_NAME](regexp);
  } catch (error1) {
    try {
      regexp[MATCH] = false;
      return '/./'[METHOD_NAME](regexp);
    } catch (error2) { /* empty */ }
  } return false;
};// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
_export._({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
  includes: function includes(searchString /* , position = 0 */) {
    return !!~String(_export.a(this))
      .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
  }
});