how do I convert the corresponding attributes and attribute values in the array into strings?
let data=[
{name:"",status:false},
{name:"",status:false},
{name:"",status:true},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:true},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
{name:"",status:false},
];
console.log(data);
I want to convert to
let obj={
"":false,
"":false,
"":true,
"":false,
"":false,
"":false,
"":false,
"":true,
"":false,
"":false,
"":false,
"":false,
"":false,
"":false,
};
console.log(obj);
how to convert this?