score:0

   const dnsListObj : {[key:string] : any } = {};

   
    for (const key in dnsList) {
      dnsListObj[key.id] = key.ipAddr;
    }

Related Query

More Query from same tag