Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Linen-dev/linen.dev
/ format
Function
format
packages/utilities/src/number.ts:1–7 ·
view source on GitHub ↗
(number: number)
Source
from the content-addressed store, hash-verified
1
export
function
format(number: number): string {
2
try {
3
return
number.toLocaleString();
4
} catch (exception) {
5
return
number.toString();
6
}
7
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected