Download next.js/packages/font/src/format-available-values.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 229 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/font/src/format-available-values.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/font/src/format-available-values.ts
-
curl -L -o format-available-values.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/font/src/format-available-values.ts
229 Bytes
| /** | |
| * Formats an array of values into a string that can be used error messages. | |
| * ["a", "b", "c"] => "`a`, `b`, `c`" | |
| */ | |
| export const formatAvailableValues = (values: string[]) => | |
| values.map((val) => `\`${val}\``).join(', ') | |