Skip to content

Instantly share code, notes, and snippets.

@xkrsz
Created February 16, 2016 00:12
Show Gist options
  • Save xkrsz/9a6bf2f32a9b29f51211 to your computer and use it in GitHub Desktop.
Save xkrsz/9a6bf2f32a9b29f51211 to your computer and use it in GitHub Desktop.
promises
qualified.forEach(function(el) {
kda = (el.stats.totalChampionKills + el.stats.totalAssists) / el.stats.totalDeathsPerSession;
if (kda > bestKda) {
bestKdaChampionId = el.id;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment