nfp_sites/nfp_moe_old/app/polyfill.js

9 lines
270 B
JavaScript
Raw Normal View History

if (!String.prototype.endsWith) {
String.prototype.endsWith = function(search, this_len) {
if (this_len === undefined || this_len > this.length) {
this_len = this.length;
}
return this.substring(this_len - search.length, this_len) === search;
};
}