In one of my website pages I have this line of code:
if (username.toLowerCase().includes("admin")) {
// do something...
}
and it works fine in Chrome & edge, but when checked IE it didn’t work the same way and instead it was throwing an error, saying that the "includes()" function cannot be found!