Text schneiden und ... JS hinzufügen
const truncate = (input) => input.length > 5 ? `${input.substring(0, 5)}...` : input;
CoderHJ
const truncate = (input) => input.length > 5 ? `${input.substring(0, 5)}...` : input;