ui-formatter 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/lib/index.js
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -145,8 +145,8 @@ function pad3(n: number): string {
|
|
|
145
145
|
return n < 10 ? "00" + n : "0" + n.toString()
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export function formatNumber(v
|
|
149
|
-
if (
|
|
148
|
+
export function formatNumber(v?: number | null, scale?: number, d?: string | null, g?: string): any {
|
|
149
|
+
if (v == null) {
|
|
150
150
|
return ""
|
|
151
151
|
}
|
|
152
152
|
if (!d && !g) {
|