JSFiddle - React, Tailwind, and code Playground

by TheDiamondDoge

JavaScript

String.prototype.includesWithMultiple = function(values) {

  let count = 0;
  values.forEach((value) => {
    count = count + this.includes(value);
  });

  return (count > 0);
};

let x = "Try me biatch";

console.log(x.includesWithMultiple(["biatsch", "me"]));