Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
indexOf twice solution in Clear category for [old] Second Index by juacompe
"use strict";
function secondIndex(text, symbol) {
let firstOccurrence = text.indexOf(symbol)
let secondOccurence = text.indexOf(symbol, firstOccurrence + 1)
return secondOccurence == -1 ? undefined: secondOccurence
}
May 13, 2019