Empty element is added to Object

前端 未结 2 783
春和景丽
春和景丽 2021-01-26 01:26

I create an object from duplicates array and I dynamically push to it elements. Everything works fine, excepting that I\'m getting an additional empty element and I

相关标签:
2条回答
  • 2021-01-26 01:48

    Change your code as below to fix this :

    Current : "variables":[{}],

    To Fix : "variables":[],

    0 讨论(0)
  • 2021-01-26 02:00

    You defined that empty object here:

    "variables":[
                  {
                  }
                ],
    
    0 讨论(0)
提交回复
热议问题