【发布时间】:2021-04-27 21:45:30
【问题描述】:
我想转换一下:
const words = {told: 64,
mistake: 11,
thought: 16,
bad: 17}
到
const words = [
{text: 'told', value: 64,},
{text: 'mistake', value: 11,},
{text: 'thought', value: 16,},
{text: 'bad', value: 17,
},
]
非常感谢
【问题讨论】:
-
对象条目和映射
标签: javascript reactjs