for (let i = 0; i < this.imgtableData.length; i++) { var obj = new Object(); obj.name = this.imgtableData[i].slice(38); obj.url = this.imgtableData[i]; this.imgList.push(obj); // console.log(2222222222222222222, obj, this.imgList); }