react-code-dataset / wp-calypso /client /lib /domains /email-forwarding /get-email-forwards-count.js
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
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;
}