What I am doing is the following
const array1 = [
[ '01', 'FA' ],
[ '01', 'CFDI40' ],
[ '02', '01' ],
[ '02', '04' ],
[ '03', '1' ],
[ '03-IMP', 'TRASLADO' ],
[ '03-IMP', 'RETENCION' ],
[ '03-ADU', '21 80 1871 0999999' ],
[ '04', 'TRASLADO' ],
[ '04', 'TRASLADO' ],
[ '04', 'TRASLADO' ],
[ '04', 'RETENCION' ],
[ '05', '1.0' ],
[ '05', 'R' ]
];
const evaluar = (element) => element[0] === '04' && element[1] === 'TRASLADO';
console.log(array1.findIndex(evaluar)); //respuesta 8
If it manages to obtain the index, obtaining 8, which I don't know how to do so that it returns all the indexes that meet that condition.
I would recommend that you use
forEach()