UNPKG

polyfill-service

Version:
1 lines 974 B
{"aliases":["default","es6","modernizr:es6string"],"browsers":{"android":"*","bb":"*","chrome":"<=40","firefox":"<=39","opera":"10 - 18","safari":"*","ie":"6 - *","ie_mob":"10 - *","ios_saf":"*","firefox_mob":"*"},"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes","baseDir":"String/prototype/includes","hasTests":false,"rawSource":"\n// String.prototype.includes\nString.prototype.includes = function (string, index) {\n\tif (typeof string === 'object' && string instanceof RegExp) throw new TypeError(\"First argument to String.prototype.includes must not be a regular expression\");\n\treturn this.indexOf(string, index) !== -1;\n};\n","minSource":"String.prototype.includes=function(t,e){if(\"object\"==typeof t&&t instanceof RegExp)throw new TypeError(\"First argument to String.prototype.includes must not be a regular expression\");return-1!==this.indexOf(t,e)};","detectSource":"'includes' in String.prototype"}