JSFiddle - React, Tailwind, and code Playground

by vikastyagi87

JavaScript

var str = "[email protected]";

str =  str.split(".",1);

alert(str);