@newdash/newdash
Version:
javascript/typescript utility library
19 lines (18 loc) • 337 B
TypeScript
/**
* remove suffix from string
*
* @since 5.5.0
* @category String
* @param str to be processed string
* @param suffix string
*
* @see [[trimPrefix]]
*
* ```js
* trimSuffix("123456789", "789")
* // => '123456'
* ```
*
*/
export declare function trimSuffix(str: string, suffix: string): string;
export default trimSuffix;