@newdash/newdash
Version:
javascript/typescript utility library
28 lines (27 loc) • 492 B
TypeScript
/**
* add suffix to string
*
* @since 5.14.0
* @category String
* @param str to be processed string
* @param suffix prefix string
*
* @see [[addPrefix]]
*
*
* ```js
* addSuffix("123456", "456")
* // => '123456'
* addSuffix("123", "123")
* // => '123456'
* ```
*
*/
export declare function addSuffix(str?: string, suffix?: string): string;
/**
* @since 5.14.0
* @category String
* @ignore
*/
export declare const appendSuffix: typeof addSuffix;
export default addSuffix;