6 lines
211 B
TypeScript
6 lines
211 B
TypeScript
|
export function getEventName(name: string, eventTitle: string, eventNameTemplate?: string) {
|
||
|
return eventNameTemplate
|
||
|
? eventNameTemplate.replace("{USER}", name)
|
||
|
: eventTitle + ' with ' + name
|
||
|
}
|