let array = [ { name: "1", age:1 }, { name: "2", age:2 }, { name: "3", age:3 } ]; array.forEach((item,index) => { item.name = item.name+""+index; }) console.log(array); array.filter(item => { return item.age > 1; }) console.log(array); [1,2,3].forEach((value,index) => { console.log(value); array[index].age += value; }) console.log(array); let map = {a:array}; console.log(map); map.a = map.a.filter(item => { return item.age > 3; }) console.log(map);