this.array = [
["0.6","138"],
["0.674","135"],
["0.77","81"],
["0.8","5"]
];
the es6 method I found is using map,. I do this with the for loop, but I don"t know how to assign the changed value to the original this.array
. Wrong report with push. I"m a little dizzy after writing the code all day
for (let index = 0; index < this.array.length; indexPP) {
const element = this.array[index];
let arr = element.map(function(i){
return +i;
})
// let myArray= this.array.push(arr) //
// this.array= myArray;
}