js对象转数组

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

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

导航