I have a string with comma now i want to get first value how can i get it?
My Code:-
var data = "0.46609362959861755, 0.25069287419319153, 0.5107838958501816, 0.26014574989676476";
console.log(data.replaceAll(',','').splice(0,2));
Thanks for your efforts!