prolab-api/vendor/bower-asset/inputmask/lib/polyfills/String.includes.js

13 lines
271 B
JavaScript
Raw Normal View History

2025-09-24 06:24:52 +00:00
if (!String.prototype.includes) {
2025-10-03 11:00:05 +00:00
String.prototype.includes = function(search, start) {
if (typeof start !== 'number') {
start = 0;
}
2025-09-24 06:24:52 +00:00
2025-10-03 11:00:05 +00:00
if (start + search.length > this.length) {
return false;
} else {
return this.indexOf(search, start) !== -1;
}
};
}