Solução: Créditos: tiagomatosweb O MELHOR!!!
const content = BETS.map((o) => {
const numbersArray = o.numbers.split(',').map(n => parseInt(n))
const intersection = numbersArray.filter(n => TRANSFORME_STRING_TO_ARRAY.includes(n))
return {
...o,
hits: intersection.length,
awarded: intersection.length >= 4 ? true : false,
numbersArray,
intersection
}
})