diff --git a/package.json b/package.json index f86dd11..8e0bc08 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "focus-core", - "version": "2.2.0-beta4", + "version": "2.2.0", "description": "Focus library core part.", "main": "index.js", "babel": { diff --git a/src/definition/formatter/number.js b/src/definition/formatter/number.js index 7e1d01f..56ca86a 100644 --- a/src/definition/formatter/number.js +++ b/src/definition/formatter/number.js @@ -13,11 +13,12 @@ function format(number, format) { } /** - * Initialize numeral locale and default format + * Initialize numeral locale and default format. * - * @param {any} { format = DEFAULT_FORMAT, locale = 'fr' } + * @param {string} [format='0,0'] format to use + * @param {string} [locale='fr'] locale to use */ -function init({ format = DEFAULT_FORMAT, locale = 'fr' }) { +function init(format = DEFAULT_FORMAT, locale = 'fr') { numeral.locale(locale); numeral.defaultFormat(format); }