@technobuddha/library
Version:
A large library of useful functions
13 lines (12 loc) • 401 B
TypeScript
export declare type Options = {
/** If true, trim */
trim?: boolean;
};
/**
* Replace all breaking space (space, tab, carriage return, new line) with a single space
*
* @param input The string
* @param trim If true, remove leading and trailing whitespace
*/
export declare function collapseBreakingspace(input: string, { trim }?: Options): string;
export default collapseBreakingspace;