a2r
Version:
A2R Framework
13 lines (12 loc) • 704 B
TypeScript
/**
* Clean text
* @param {string} str Source string to clean
* @param {boolean} toLower Transform to lower
* @param {boolean} removeNonAlphanumeric Remove any non-alphanumeric or non-space character
* @param {boolean} removeSpaces Remove spaces
* @param {boolean} turnToCamelCase Turn string to camel case
* @param {string} camelCaseSeparator Separator for camel case conversion
* @param {string} spaceSubstitute If provided, will be used to replace spaces
*/
declare const cleanText: (str: string, toLower?: boolean, removeNonAlphanumeric?: boolean, removeSpaces?: boolean, turnToCamelCase?: boolean, camelCaseSeparator?: string, spaceSubstitute?: string) => string;
export default cleanText;