labelsConv = labels.reduce(
(prev, tec) => {
Array.isArray(tec) ? prev.push(tec.join(" ")) : prev.push(tec)
return prev
},
[] );
const labelsConv = labels.reduce(
(prev, tec, i) =>
Array.isArray(tec) ? prev[i]=tec.join(" ") : prev[i]=tec
,
[]
);