pure-fun
Version:
A collection of pure functions/helpers with 0 dependencies
8 lines (7 loc) • 323 B
TypeScript
/**
* Ellipsize a string at given character length.
* Defaults to the 100th character.
* An optional third argument can be provided to use the unicode ellepsis character or just three dots
*/
declare const ellipsize: (str: string, max?: number, useUnicodeEllipsis?: boolean) => string;
export default ellipsize;