I want to create a table with a boucle FOR in javascript.
But I push tables, so my final table is:
[ [{},{}],[{},{}] ]
but I would like:
[{},{}]
How can I delete [ ] in a table.
My code :
this.table = [];
for (let i = 0; i < numberUnicorn; i++) {
this.subMember = this.itemService.getUnicornMembership().subscribe((items) => {
this.table.push(items);
});
}
Thank you