Download wp-calypso/client/site-profiler/utils/normalize-whois-list.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/site-profiler/utils/normalize-whois-list.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/site-profiler/utils/normalize-whois-list.ts
-
curl -L -o normalize-whois-list.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/site-profiler/utils/normalize-whois-list.ts
230 Bytes
| // Normalize a whois entry field to an array of strings | |
| export function normalizeWhoisList( field: string | string[] | undefined ): string[] { | |
| if ( Array.isArray( field ) ) { | |
| return field; | |
| } | |
| return field ? [ field ] : []; | |
| } | |