mirror of
https://github.com/Xevion/100prisoners.git
synced 2025-12-11 02:06:31 -06:00
6 lines
265 B
TypeScript
6 lines
265 B
TypeScript
export const range = (start: number, stop: number, step = 1) =>
|
|
Array.from({length: (stop - start) / step + 1}, (_, i) => start + i * step);
|
|
|
|
export function classNames(...classes: (string | null | undefined)[]) {
|
|
return classes.filter(Boolean).join(" ");
|
|
} |