Compare Revisions

String.prototype.contains()

Revision 417867:

Revision 417867 by Sheppy on

Revision 431323:

Revision 431323 by Qantas94Heavy on

Title:
String.contains
String.contains
Slug:
Web/JavaScript/Reference/Global_Objects/String/contains
Web/JavaScript/Reference/Global_Objects/String/contains
Tags:
"String Methods","JavaScript Reference","String","JavaScript"
"String Methods","JavaScript Reference","String","JavaScript"
Content:

Revision 417867
Revision 431323
n179    <h2>n179    <h2 id="Polyfill">
t187  String.prototype.contains = function(str, startIndex) { return t187  String.prototype.contains = function(str, startIndex) { return 
>-1!==this.indexOf(str, startIndex); };>-1 !== String.prototype.indexOf.call(this, str, startIndex); };

Back to History