[Vuejs]-Convert two dimensional associated array to Object using vue.js

0👍

to reduce your array to a single object you can do something like

let keyedOb = maplist.reduce((o,v) =>{ o[v.id] = v.name; return o},{})

Leave a comment