JS Encontre o índice na string
const email = '[email protected]';
const searchTerm = '@';
const index = email.indexOf(searchTerm);
-----
index => 3
Swiss IT knive
const email = '[email protected]';
const searchTerm = '@';
const index = email.indexOf(searchTerm);
-----
index => 3