0
Try using spread operator this.current_posts.push(...new_data);
var x = []
var y = []
var items = [1,2,3]
// what you are doing:
x.push(items)
console.log(x)
// what you need
y.push(...items)
console.log(y)
Source:stackexchange.com
0
Try using spread operator this.current_posts.push(...new_data);
var x = []
var y = []
var items = [1,2,3]
// what you are doing:
x.push(items)
console.log(x)
// what you need
y.push(...items)
console.log(y)