let script_type = {'vpl_run.sh':0,'vpl_debug.sh':1,'vpl_evaluate.sh':2,'vpl_evaluate.cases':2};
let list = ['vpl_run.sh','vpl_debug.sh', 'vpl_evaluate.sh', 'vpl_evaluate.cases'];
for (let i = 0, len = list.length; i < len; i++) {
let fileName = list[i];
console.log(script_type.fileName);
}
Always getting undefined in console log
Note : variable fileName has value as "vpl_run.sh" with dot (.) what exactly I need is
0
1
2
2