I right now just get the first 3 Object of an Array and map over them:
{ champions.slice(0,3).map(function(ch
Write your own comparison function:
function compare(a,b) { if (a.level < b.level) return -1; if (a.level > b.level) return 1; return 0; }
To use it:
champions.sort(compare).slice(0,3).map(function(champ) {