internet explorer
-
(JS) Use include method in IE
Here’s a hack for using the includes method also in the horrible Internet Explorer. [js] if (!String.prototype.includes) { String.prototype.includes = function () { ‘use strict’; return String.prototype.indexOf.apply(this, arguments) !== -1; }; } [/js]