includes is not supported in Internet Explorer (or Opera)
Instead you can use indexOf. #indexOf returns the index of the first character of the substring if it is in the string, otherwise it returns –1
or you can use below function to in your javascript and you can still use include to work in IE10 / IE11
//IE 10/IE11 fix for includes function String.prototype.includes = function () { 'use strict'; return String.prototype.indexOf.apply(this, arguments) !== -1; };
Hope this helps!