Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

includes not working

String.prototype.includes = function (str) {
  var returnValue = false;

  if (this.indexOf(str) !== -1) {
    returnValue = true;
  }

  return returnValue;
}
// no need to do anything. Just put this at the top of your code, and call string.includes("") like
// normal on IE 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #includes #working
ADD COMMENT
Topic
Name
1+9 =