[Vuejs]-JavaScript array.push() for object

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)

Leave a comment