Metoda Domena Waliator JS

isDomain(arg) {
		let regexDomain = /^\w+([\.-]?\w+)*(\.\w{2,3})+$/;
		if (arg.match(regexDomain)) {
			return true;
		} else {
			return false;
		}
	}
Elegant Elk