Function: splitText()
splitText(
str:string,length:number,char:string):string
Split a string by its latest space character in a range from the character 0 to the selected one.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
str | string | undefined | The text to split. |
length | number | undefined | The length of the desired string. |
char | string | ' ' | The character to split with |
Returns
string
Copyright
2019 Aura Román
License
Apache-2.0