OK, so typically on SO, you want to say what you've tried, what error you've gotten etc, otherwise your question may get deleted. But, here goes:
var originalString = `"data/test1.jpg",zero1,0.947648
"data/test1.jpg",zero1,0.957323
"data/test1.jpg",zero1,0.955677
"data/test1.jpg",zero1,0.951940
"data/test1.jpg",zero1,0.950025`;
var oneDArray = originalString.split('\n\r'); // split on the return characters, you may have to play with this to get it to work.
var twoDAttay = oneDArray.map( line => line.split(",") ); // make an array of 3 elements for each line, split by the commas.
So at this point you have this:
twoDArray = [
["data/test1.jpg",zero1,0.947648],
["data/test1.jpg",zero1,0.957323],
["data/test1.jpg",zero1,0.955677],
["data/test1.jpg",zero1,0.951940],
["data/test1.jpg",zero1,0.950025]
];
And all your numbers are in the 2
spot of each inner array. Now we're ready to find the maximum number, we just need to get the numbers in their own array:
var numArray = twoDArray.map( line => Number( line[2] )); // get only the numbers
var maxNum = Math.max( ...numArray ); // find the maximum number
var index = numArray.indexOf( maxNum ); // find the index of the max number, this will correspond to the oneDArray.
var maxLine = oneDarray[ index ]; // This is your answer
But after you get the 2-D array, there's many ways you can do it: Finding the max value of an attribute in an array of objects. Use the version that makes the most sense to you. The hardest part is going to be cleaning your data into a format that js can understand - those quoted and unquoted strings are going to be an issue.