mirror of
https://github.com/ionic-team/ionicons.git
synced 2026-11-30 16:48:16 +01:00
18 lines
789 B
JavaScript
18 lines
789 B
JavaScript
/*! Built with http://stenciljs.com */
|
|
const { h } = window.DocsSite;
|
|
|
|
function applyPolyfill(window, document) {/*!
|
|
String.prototype.endsWith
|
|
*/
|
|
String.prototype.endsWith||Object.defineProperty(String.prototype,"endsWith",{writable:!0,configurable:!0,value:function(b,a){if(void 0===a||a>this.length)a=this.length;return this.substring(a-b.length,a)===b}});
|
|
/*!
|
|
String.prototype.includes
|
|
*/
|
|
String.prototype.includes||(String.prototype.includes=function(b,a){"number"!==typeof a&&(a=0);return a+b.length>this.length?!1:-1!==this.indexOf(b,a)});
|
|
/*!
|
|
String.prototype.startsWith
|
|
*/
|
|
String.prototype.startsWith||Object.defineProperty(String.prototype,"startsWith",{writable:!0,configurable:!0,value:function(b,a){return this.substr(!a||0>a?0:+a,b.length)===b}});}
|
|
|
|
export { applyPolyfill };
|