You are viewing a single comment's thread. Return to all comments →
How can i optimise this more ?
let uniqueRanked=[... new Set(ranked)].sort((a,b)=>{return b-a}); let final=[]; player.map(e=> { let i=0; while(i<uniqueRanked.length) { if(e>=uniqueRanked[i]) { final.push(i+1); break; } i++; } i==uniqueRanked.length? final.push(uniqueRanked.length+1):0; }) return final }
Seems like cookies are disabled on this browser, please enable them to open this website
Climbing the Leaderboard
You are viewing a single comment's thread. Return to all comments →
How can i optimise this more ?