JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

const arr = [{name: 'luka'},{name:'mariami'}];

console.log(arr.map(el => [...el,{age: 20}]))