This repository contains a trimmer for string arrays.
stringSmartTrimmer(array: string[], maxLength: number): string[];
const array = ['fig','banana', 'Cornelian cherry', 'GrapeFruit'];
stringSmartTrimmer(array, 20);
// output: [ 'fig', 'banan', 'Cornel', 'GrapeF' ]
stringSmartTrimmer(array, 30);
// output: [ 'fig', 'banana', 'Cornelian c', 'GrapeFruit' ]
stringSmartTrimmer(array, 15);
// output: [ 'fig', 'bana', 'Corn','Grap' ]