UNPKG

scrabble-solver

Version:

Scrabble Solver 2 - Free, open-source, cross-platform, multi-language analysis tool for Scrabble, Scrabble Duel, Super Scrabble, Letter League, Crossplay, Literaki, and Kelimelik. Quickly find the top-scoring words using the given board and tiles.

6 lines (4 loc) 183 B
import { type Comparator } from '@/types'; export const reverseComparator = <T>(comparator: Comparator<T>): Comparator<T> => { return (a: T, b: T): number => -comparator(a, b); };