2 years ago

insert a array to array

Posted 2 years ago by haizone

i have a array

['one', 'two','trhee']

now i want to push into the array at index 0 more array and with for loop insert the value to the array

this is my code but is didnt work: this.filters[0].push(this.productstores[pro].productspec[spec].pivot.value);

i whant in this.filters[0] i get more array with options this.filters[0][0] and get a value when i print that

this.filters is an object


Please sign in or create an account to participate in this conversation.