@newdash/newdash
Version:
javascript/typescript utility library
22 lines (21 loc) • 489 B
TypeScript
/**
* Removes trailing whitespace or specified characters from `string`.
*
* @since 5.6.0
* @category String
* @param str The string to trim.
* @param chars The characters to trim.
* @returns Returns the trimmed string.
* @see [[trim]],[[trimStart]]
* @example
*
* ```js
* trimEnd(' abc ')
* // => ' abc'
*
* trimEnd('-_-abc-_-', '_-')
* // => '-_-abc'
* ```
*/
export declare function trimEnd(str: string, chars: string, guard?: any): string;
export default trimEnd;