Skip to main content

Function: cutText()

cutText(str: string, length: number): string

Split a text by its latest space character in a range from the character 0 to the selected one.

Parameters

ParameterTypeDescription
strstringThe text to split.
lengthnumberThe length of the desired string.

Returns

string

2019 Aura Román

License

Apache-2.0

Source

lib/cutText.ts:10