Piggy

Tuple Magic in TypeScript

type A = Sort<[3, 5, 1, 2, 4]>; // type A = [1, 2, 3, 4, 5];

February 5, 2021 · Piggy