js map item index code example
Example 1: map index
array.map((currentelement, index) => {
});
Example 2: map method
var yourArray= yourArray.map(Number);
array.map((currentelement, index) => {
});
var yourArray= yourArray.map(Number);