Download wp-calypso/client/lib/emails/get-email-address.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/emails/get-email-address.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/emails/get-email-address.js
-
curl -L -o get-email-address.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/emails/get-email-address.js
469 Bytes
| /** | |
| * Construct an email address from the mailbox object. | |
| * @param {Object} Mailbox The mailbox object. | |
| * @param {string} Mailbox.mailbox The mailbox name/username for the mailbox. | |
| * @param {string} Mailbox.domain The domain for the mailbox. | |
| * @returns {string} Returns the email address formed from the mailbox object. | |
| */ | |
| export function getEmailAddress( { mailbox, domain } ) { | |
| if ( mailbox && domain ) { | |
| return `${ mailbox }@${ domain }`; | |
| } | |
| return ''; | |
| } | |