How do I convert an array into an object with properties:
With the following data:
["Test Scenario ID", "Login-1"]
I would like to return an object with properties:
{1: "Test Scenario ID", 2: "Login-1"} // desired result
With the following, It maps the data into separate objects, but I would like it to be properties of a single object instead of an array of objects:
row.values.map( (e,i) => { return {i: e} })
[{1: "Test Scenario ID"}, {2: "Login-1"}] // the current result