@n3okill/utils
Version:
Many javascript helpers
8 lines (7 loc) • 306 B
TypeScript
/**
* Remove given characters from right side of the string
* @param s String to remove the characters from
* @param chars Characters to remove, if not defined removes empty spaces
* @returns Trimmed string
*/
export declare function trimRight(s: string | null | undefined, chars?: string[]): string;