1var arrOfObj = [{
2 name: 'eve'
3}, {
4 name: 'john'
5}, {
6 name: 'jane'
7}];
8
9var result = arrOfObj.map(function(el) {
10 var o = Object.assign({}, el);
11 o.isActive = true;
12 return o;
13})
14
15console.log(arrOfObj);
16console.log(result);