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

META-INF.resources.bower_components.globalize.src.number.numbering-system-digits-map.js Maven / Gradle / Ivy

There is a newer version: 1.2.2.1-jre17
Show newest version
define([
    "./numbering-system",
    "../common/create-error/unsupported-feature"
], function (numberNumberingSystem, createErrorUnsupportedFeature) {

    /**
     * nuMap( cldr )
     *
     * @cldr [Cldr instance].
     *
     * Return digits map if numbering system is different than `latn`.
     */
    return function (cldr) {
        var aux,
            nu = numberNumberingSystem(cldr);

        if (nu === "latn") {
            return;
        }

        aux = cldr.supplemental(["numberingSystems", nu]);

        if (aux._type !== "numeric") {
            throw createErrorUnsupportedFeature("`" + aux._type + "` numbering system");
        }

        return aux._digits;
    };

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy