Javascript String endsWithArray(arr)
String.prototype.endsWithArray = function(arr) { for (var v = 0; v < arr.length; v++) if (this.endsWith(arr[v])) return true; return false; };