js对象转数组

const arr Object.keys(obj).map(key => ({ key, value: obj[key}));

posted on 2023-11-24 18:53  漫思  阅读(2)  评论(0编辑  收藏  举报

导航