text: import { NotImplementedError } from "../extensions/index.js";
  
  /**
   * Given an email address, return it's domain.
   *
   * @param {String} email
   * @return {String}
   *
   * @example
   * For the input 'prettyandsimple@example.com', the output should be 'example.com'
   *
   */
  export default function getEmailDomain(email) {
    let result = email.match(/\@.+$/)[0];
    result = result.replace("@", "");
  
    if (result.includes("@")) {
      result = result.match(/\@.+$/)[0].replace("@", "");
    }
  
    return result;
  }
  