Thanks for the reply, I read the answer but I don't want to use a specific pattern.I want the logic like on the checkout page that checks for every domain that can be given to it whether it is a real domain or not! Is this possible?
I want to add validation for customer email domain in my javascript frontend code like the validtion there is in the checkout page for the customer email domain. how can i get this function? there is api?