index on javascriot code example
Example 1: .index of javascript
let monTableau = ['un', 'deux','trois', 'quatre'] ;
console.log(monTableau.indexOf('trois')) ;
Example 2: get array by array of indices js
var resultArr = indexArr.map(i => fruitier[i])