Closed pauliesnug closed 3 months ago
the current implementation of nth is as follows:
nth
export function nth(n: number) { if (n === 1) return '1st' if (n === 2) return '2nd' if (n === 3) return '3rd' return `${n}th` }
this leads to issues like this:
i can submit a PR to fix this if needed. maybe we use a small devdepencency library?
Agree, made a PR to fix 👍
the current implementation of
nth
is as follows:this leads to issues like this:
i can submit a PR to fix this if needed. maybe we use a small devdepencency library?