How can i use spread only one time?

前端 未结 0 1387
栀梦
栀梦 2021-02-03 12:37

how can i improve this code?

const { first, second, three, ...list } = minerals
    let newMinerals
    if (currentUnit === \'rd\') {
      newMinerals = {
               


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