Download wp-calypso/client/lib/domains/registered-domains.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/registered-domains.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/domains/registered-domains.js
-
curl -L -o registered-domains.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/registered-domains.js
338 Bytes
| import { type as domainTypes } from './constants'; | |
| export function getRegisteredDomains( domains ) { | |
| return domains.filter( isRegisteredDomain ); | |
| } | |
| export function isRegisteredDomain( domain ) { | |
| return domain.type === domainTypes.REGISTERED; | |
| } | |
| export function isFreeUrlDomain( domain ) { | |
| return domain.type === domainTypes.WPCOM; | |
| } | |