forked from Qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
219 B
9 lines
219 B
2 years ago
|
export function cropAddress(string = "", range = 5) {
|
||
|
const [start, end] = [
|
||
|
string?.substring(0, range),
|
||
|
string?.substring(string?.length - range, string?.length),
|
||
|
//
|
||
|
];
|
||
|
return start + "..." + end;
|
||
|
}
|