We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2720adb commit 862b438Copy full SHA for 862b438
src/numbers/format-number.js
@@ -18,7 +18,7 @@ export default function formatNumber(number, format = NUMBER_PLACEHOLDER, locale
18
19
let result;
20
if (options) {
21
- const style = (options || {}).style || DECIMAL;
+ const style = options.style || DECIMAL;
22
result = standardNumberFormat(number, Object.assign({}, info.numbers[style], options), info);
23
} else {
24
result = customNumberFormat(number, format, info);
0 commit comments