UNPKG

qsu

Version:

qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.

3 lines (2 loc) 175 B
import type { PositiveNumber } from '../_types/global'; export declare function truncate<N extends number>(str: string, length: PositiveNumber<N>, ellipsis?: string): string;