AP
Size: a a a
AP
MZ
AP
B
FS
FS
PM
FS
$: valuesToShow = () => {
const firstRecipient = recipients[0];
let chars = CharsPerElement - trim.length;
if (recipients.length === 1) {
return [firstRecipient];
} else {
const res = recipients.filter(i => {
if (chars - i.length > 0) {
chars -= i.length;
return true;
}
});
console.log(recipients, res);
return res.length ? res : firstRecipient + trim;
}
}
FS
PM
ТК
ТК
FS
PM
PM
FS
PM
PM
PM