
META-INF.resources.butterfaces-ts.butterfaces-util-string.ts Maven / Gradle / Ivy
module ButterFaces {
export class String {
static format(format:string):string {
var args = Array.prototype.slice.call(arguments, 1);
return format.replace(/{(\d+)}/g, function (match, number) {
return typeof args[number] != 'undefined' ? args[number] : match;
});
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy