@technobuddha > library > String > Operations
Function: wordwrap()
ts
function wordwrap(input: string, options: WordwrapOptions): string;Defined in: wordwrap.ts:32
Wrap text so that it fits within a area of fixed width
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | the text to wrap |
options | WordwrapOptions | see WordwrapOptions |
Returns
string
wrapped text
Default Value
ts
width 75Default Value
ts
separator \\nDefault Value
ts
cut default falseDefault Value
ts
trailingSpaces false