How can I replace all keys of nested object in javascript

前端 未结 0 1582
忘掉有多难
忘掉有多难 2020-12-23 14:24
      function renameKeys(obj, newKeys) {
        const keyValues = Object.keys(obj).map((key) => {
          let newKey = key + "1";
          if (Arra         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题