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

META-INF.resources.bower_components.globalize.src.util.string.pad.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
define(function () {

    return function (str, count, right) {
        var length;
        if (typeof str !== "string") {
            str = String(str);
        }
        for (length = str.length; length < count; length += 1) {
            str = (right ? (str + "0") : ("0" + str));
        }
        return str;
    };

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy