@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
12 lines (10 loc) • 393 B
text/typescript
/**
* Split a string 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.
* @param char The character to split with
* @copyright 2019 Aura Román
* @license Apache-2.0
*/
declare function splitText(str: string, length: number, char?: string): string;
export { splitText };