2 ms·
Isn't their example even simpler? In JS/TS, for example: ```ts const pluralizePhrase = (noun: string, count: number) => count == 1 ? `There is one ${nou
by a_wild_dandan 2y ago
Isn't their example even simpler? In JS/TS, for example:
```ts
const pluralizePhrase = (noun: string, count: number) =>
count == 1 ? `There is one ${noun}` : `There are ${count || "no"} ${noun}s`;
```