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