form-cheatsheet/js/polyfills/EcmaScript/String.prototype.includes.js

2 lines
178 B
JavaScript

String.prototype.includes=function(b,a){"number"!==typeof a&&(a=0);return a+b.length>this.length?!1:-1!==this.indexOf(b,a)};
//# sourceMappingURL=String.prototype.includes.js.map