META-INF.resources.bower_components.globalize.src.unit.formatter-fn.js Maven / Gradle / Ivy
define([
"../common/validate/parameter-presence",
"../common/validate/parameter-type/number",
"./format"
], function (validateParameterPresence, validateParameterTypeNumber, unitFormat) {
return function (numberFormatter, pluralGenerator, unitProperties) {
return function unitFormatter(value) {
validateParameterPresence(value, "value");
validateParameterTypeNumber(value, "value");
return unitFormat(value, numberFormatter, pluralGenerator, unitProperties);
};
};
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy