@augment-vir/common
Version:
A collection of augments, helpers types, functions, and classes for any JavaScript environment.
13 lines (12 loc) • 509 B
TypeScript
import { type PartialWithUndefined } from '@augment-vir/core';
/**
* Collapse all consecutive white space into just one space and trim surrounding whitespace.
* Optionally, collapsed newlines can be preserved.
*
* @category String
* @category Package : @augment-vir/common
* @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common)
*/
export declare function collapseWhiteSpace(input: string, { keepNewLines }?: PartialWithUndefined<{
keepNewLines: boolean;
}>): string;