💾 Archived View for iich.space › src › util › truncate.ts captured on 2022-03-01 at 16:00:17.
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
export const truncate = (text: string, length: number): string => { return text.length > length - 3 ? `${text.slice(0, length - 3)}...` : text; };