List of utility methods to do String Include
includes(substring)String.prototype.includes = function(substring){ return this.indexOf(substring) > -1 ? true : false; | |
includes(val, from)String.prototype.includes = function(val, from) { return this.indexOf(val, from) !== -1; |