mirror of
https://github.com/Teamlinker/Teamlinker.git
synced 2025-06-03 03:00:17 +00:00
9 lines
223 B
TypeScript
9 lines
223 B
TypeScript
export default class StringUtil {
|
|
static format(str: string, ...arg: any[]) {
|
|
let a = str;
|
|
for (let k in arg) {
|
|
a = a.replace("{" + k + "}", String(arg[k]))
|
|
}
|
|
return a
|
|
}
|
|
} |