If I would like to match the word that I need to find it the same as in Excel. I intend to create a form for Example. I have a file certain big d
data is a 2D(two dimensional) array. indexOf only works with a 1D array. flatten the array before indexOf:
data
indexOf
const data = [["A1"],["A2"],["TPBSA"],["A4"]]; console.info(data.flat().indexOf("TPBSA")); //or console.info(data.findIndex(e=>e[0]==='TPBSA'))