Add common formatting functions
This commit is contained in:
parent
de0fbd7188
commit
29d98796fb
1 changed files with 4 additions and 0 deletions
4
ts/format.ts
Normal file
4
ts/format.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export function shortAddress(a: Address): string {
|
||||
if (!a) return "";
|
||||
return `${a.number} ${a.street}, ${a.locality}`;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue