UNPKG

ovuse

Version:

WPF-inspired Web UI framework

28 lines (27 loc) 894 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); if (!String.prototype.format) { String.prototype.format = function () { var args = arguments; return this.replace(/{(\d+)}/g, function (match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); }; } if (!String.prototype.toUpperFirstLetter) { String.prototype.toUpperFirstLetter = function () { return this.charAt(0).toUpperCase() + this.slice(1); }; } if (!String.prototype.toLowerFirstLetter) { String.prototype.toLowerFirstLetter = function () { return this.charAt(0).toLowerCase() + this.slice(1); }; } if (!String.prototype.startsWith) { String.prototype.startsWith = function (other) { return this.lastIndexOf(other, 0) == 0; }; }