// find the column index let findColPosIndex = columns.findIndex(col => col.column_id === activeColumnId) // console.log(findColPosIndex) I would like to use the result saved in findColPositionIndex and use it in the other function ?
@SempervivumNov 07.2019 — #If your variable `findColPosIndex` is global it can be accessed from anywhere. However if it's defined e. g. in a function it's not accessible from outside including use in another function. Without viewing the context of the definition one cannot give further advice.