[Vuejs]-Vue merge value in nested object with parent array

0👍

You can map through the array and return a modified version.

var items_extended = items.map(function (item) {
    return {
        id: item.id,
        name: item.name,
        category: item.category.name,
    };
});

Leave a comment