I have a simple array of string but I am trying to convert it to array of decimal numbers like [5.22,8.22,rest of the numbers], but it is returning only array of whole numbers.
I am doing some rookie mistake which I am not able to notice
let k = ["5:17", "8:22", "3:34", "5:23",
"7:12", "7:24", "6:46", "4:45",
"4:40", "7:58", "11:51", "9:13",
"5:50", "5:52", "5:49", "8:57",
"11:29", "3:07", "5:59", "3:31"];
let arrOfNum = k.reduce(function(acc, crr) {
acc.push(parseFloat(crr))
return acc;
}, [])
console.log(arrOfNum)