mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 03:29:51 +02:00
6 lines
158 B
TypeScript
6 lines
158 B
TypeScript
import { LEAGUES } from '@blitzkit/core';
|
|
|
|
export function getLeagueFromScore(score: number) {
|
|
return LEAGUES.find(({ minScore }) => score >= minScore)!;
|
|
}
|