let objToList = (obj,code='code',value='value')=>{
const keys = Object.keys(obj)
const result = keys.map(it=>{
return { [code]: it, [value]: obj[it] }
})
return result
}
let objToList = (obj,code='code',value='value')=>{
const keys = Object.keys(obj)
const result = keys.map(it=>{
return { [code]: it, [value]: obj[it] }
})
return result
}