@studiometa/js-toolkit
Version:
A set of useful little bits of JavaScript to boost your project! 🚀
10 lines (9 loc) • 400 B
TypeScript
/**
* Remove the given characters from the end of the given string.
*
* @param {string} string The string to modify.
* @param {string} characters The characters to remove from the end.
* @return {string}
* @link https://js-toolkit.studiometa.dev/utils/string/withoutTrailingCharacters.html
*/
export declare function withoutTrailingCharacters(string: string, characters: string): string;