Here's a solution without Lodash. ... for (const players of Object.values(teamToPlayers)) { players.sort((a, b) => b.salary ... maxBy is non-empty).
確定! 回上一頁