js trouver l'index dans la chaîne

const email = '[email protected]';
const searchTerm = '@';
const index = email.indexOf(searchTerm);
-----
index => 3
Swiss IT knive