const flatObject = Object.keys({ ...list }).reduce((result: any, key) => { const innerObj = { ...list }[key]; Object.keys(innerObj).forEach((innerKey) => { result[innerKey] = innerObj[innerKey]; }); return result; }, {});
标签:...,const,key,对象,innerKey,处理,result,数组,innerObj From: https://www.cnblogs.com/zjxzhj/p/17678857.html