## wordWrap() function

Returns a word-wrapped string. Based on: [https://stackoverflow.com/a/38709683](https://stackoverflow.com/a/38709683)

**Signature:**

```typescript
export declare function wordWrap(text: string, maxLength: number): string[];
```

## Parameters

| Parameter | Type   | Description                    |
|-----------|--------|-------------------------------|
| text      | string | Original input string.        |
| maxLength | number | Width in number of characters.|

**Returns:**

string[]

Array of lines.

- [wordWrap() function](/content/docs/sdk/core.wordwrap#wordwrap-function/index.html)
- [Parameters](/content/docs/sdk/core.wordwrap#parameters/index.html)
