react-code-dataset / wp-calypso /client /lib /domains /email-forwarding /get-email-forwards-count.js
react-code-dataset / wp-calypso /client /lib /domains /email-forwarding /get-email-forwards-count.js
Download wp-calypso/client/lib/domains/email-forwarding/get-email-forwards-count.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/email-forwarding/get-email-forwards-count.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/domains/email-forwarding/get-email-forwards-count.js
-
curl -L -o get-email-forwards-count.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/email-forwarding/get-email-forwards-count.js
236 Bytes
| /** | |
| * @param domain A domain object returned from the domains REST API | |
| * @returns {number} The number of email forwards for that domain. | |
| */ | |
| export function getEmailForwardsCount( domain ) { | |
| return domain?.emailForwardsCount ?? 0; | |
| } | |