All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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