JSFiddle - React, Tailwind, and code Playground

by Trevor W

JavaScript

let foo = "[email protected]";
foo = foo.substring(0, foo.indexOf('@'));
document.write(foo);