Download wp-calypso/client/lib/domains/whois/utils.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/whois/utils.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/domains/whois/utils.js
-
curl -L -o utils.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/whois/utils.js
323 Bytes
| import { find } from 'lodash'; | |
| import { whoisType } from './constants'; | |
| export function findRegistrantWhois( whoisContacts ) { | |
| return find( whoisContacts, { type: whoisType.REGISTRANT } ); | |
| } | |
| export function findPrivacyServiceWhois( whoisContacts ) { | |
| return find( whoisContacts, { type: whoisType.PRIVACY_SERVICE } ); | |
| } | |