I would like to know how to find the indexOf
in JS
between two array
, a array
contains the given values and the other array
the values that I want to know your indexOf
var act = [10002197,10001755,10001087,10001879,3508477478,10001881];
var actselect = [10002197,10001755,10001087,10001881];
var posicion = act.indexOf(actselect); //en vez de un numero necesito insertar un array que lo haga por cada valor
console.log(posicion); //la respuesta debería se (0,1,5)