Fix format conversion utility module syntax
This commit is contained in:
1 parent
cf2b3d2e5d
commit
2273dfa0f5
1 file changed
+1
-2
@@ -1,4 +1,4 @@
|
|||||||
function formatConversionValue(value: number | null | undefined): string {
|
export function formatConversionValue(value) {
|
||||||
if (value === null || value === undefined || Number.isNaN(value)) {
|
if (value === null || value === undefined || Number.isNaN(value)) {
|
||||||
return '—';
|
return '—';
|
||||||
}
|
}
|
||||||
@@ -21,4 +21,3 @@ function formatConversionValue(value: number | null | undefined): string {
|
|||||||
const scientific = value.toExponential();
|
const scientific = value.toExponential();
|
||||||
return scientific.replace(/\.?0+e/, 'e');
|
return scientific.replace(/\.?0+e/, 'e');
|
||||||
}
|
}
|
||||||
module.exports = { formatConversionValue };
|
|
||||||
Reference in new issue
Block a user