i have certain string
const str = "・Welcome to ・StackOverFlow ・Best Regards";
i want to get all the indexes of the character "・"
unfornately the indexOf
only gives the first instance
const str = "・Welcome to ・StackOverFlow ・Best Regards";
let bullet_ndx = [];
console.log(str.indexOf("・"));
is there a way i could find all the indexes of the certain character?