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

META-INF.resources.bower_components.globalize.src.relative-time.formatter-fn.js Maven / Gradle / Ivy

There is a newer version: 0.66.0.1
Show newest version
define([
    "../common/validate/parameter-presence",
    "../common/validate/parameter-type/number",
    "./format"
], function (validateParameterPresence, validateParameterTypeNumber, relativeTimeFormat) {

    return function (numberFormatter, pluralGenerator, properties) {
        return function relativeTimeFormatter(value) {
            validateParameterPresence(value, "value");
            validateParameterTypeNumber(value, "value");

            return relativeTimeFormat(value, numberFormatter, pluralGenerator, properties);
        };

    };

});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy