Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Second Index by suic
function secondIndex(text: string, symbol: string): number | undefined {
let result = text.indexOf(symbol, text.indexOf(symbol)+1);
return result === -1 ? undefined : result;
}
Aug. 10, 2020
Comments: