JS menemukan indeks dalam 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