polyfill-service
Version:
A polyfill combinator
1 lines • 882 B
JSON
{"aliases":["es6","modernizr:es6string","blissfuljs","default"],"browsers":{"android":"*","bb":"*","chrome":"<=40","firefox":"3.6 - 17","opera":"10 - 18","safari":"*","ie":"6 - *","ie_mob":"10 - *","ios_saf":"*","firefox_mob":"3.6 - 17"},"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith","baseDir":"String/prototype/endsWith","hasTests":true,"rawSource":"\n// String.prototype.endsWith\nString.prototype.endsWith = function (string) {\n\tvar index = arguments.length < 2 ? this.length : arguments[1];\n\tvar foundIndex = this.lastIndexOf(string);\n\treturn foundIndex !== -1 && foundIndex === index - string.length;\n};\n","minSource":"String.prototype.endsWith=function(t){var n=arguments.length<2?this.length:arguments[1],e=this.lastIndexOf(t);return-1!==e&&e===n-t.length};","detectSource":"'endsWith' in String.prototype"}