File size: 165 Bytes
faca43f
 
 
 
 
 
1
2
3
4
5
6
7
export function trimSuffix(input: string, end: string): string {
	if (input.endsWith(end)) {
		return input.slice(0, input.length - end.length);
	}
	return input;
}