Remove comma if its the last item in the object

前端 未结 0 1228
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 17:31

I am trying to remove the comma on the item if its the last item on the object.

 Object.entries(product.name).map(
            ([key, value]) => {
                 


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