All files / src/helpers utils.ts

100% Statements 9/9
100% Branches 5/5
100% Functions 3/3
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7162x   6x 14x 5x 1x  
export const clsx = (...args: any[]) => args.filter(arg => !!arg).join(" ");
 
export const ellipsisText = (text: string, letters: number = 60) => {
    if (!text) return "--";
    if (text.length <= letters) return text;
    return text.slice(0, letters).concat("...");
}