blockly > utils > string > wrap
utils.string.wrap() function
Wrap text to the specified width.
Signature:
export declare function wrap(text: string, limit: number): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| text | string | Text to wrap. |
| limit | number | Width to wrap each line. |
Returns:
string
Wrapped text.