I want to create an object with every value as "true" and the length of keys will be same with array length.
Example :
const myCar = [{name:ford,type:A},{name:opel,type:B}]
The output want to be like this below
{0:true,1:true}
If the length from the array myCar will be 3 so the output will be like this as well:
{0:true,1:true,2:true}