I want to convert the array and the corresponding properties and attribute values into objects.

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?

Mar.25,2021

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},
  ];
let obj= {};
data.map(d=>obj[d.name]=d.status);
   console.log(obj);

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9d2a7-5c750.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9d2a7-5c750.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?