Spaces:
Paused
Paused
Download src/lib/utils/string.ts from Nymbo/inference-playground: direct link, hf CLI and curl.
- Browser
- Download file 125 Bytes
-
https://huggingface.co/spaces/Nymbo/inference-playground/resolve/main/src/lib/utils/string.ts
- Command line
-
hf download hf://spaces/Nymbo/inference-playground/src/lib/utils/string.ts
-
curl -L -o string.ts https://huggingface.co/spaces/Nymbo/inference-playground/resolve/main/src/lib/utils/string.ts
125 Bytes
| export function pluralize(word: string, count: number): string { | |
| if (count === 1) { | |
| return word; | |
| } | |
| return word + "s"; | |
| } | |