@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
11 lines (9 loc) • 329 B
text/typescript
/**
* Split a text by its latest space character in a range from the character 0 to the selected one.
* @param str The text to split.
* @param length The length of the desired string.
* @copyright 2019 Aura Román
* @license Apache-2.0
*/
declare function cutText(str: string, length: number): string;
export { cutText };