list = [{test: "a", test2: "aa"}, {test: "b", test2: "bb"}]
yourArray.forEach( function (arrayItem)
{
var x = arrayItem.prop1 + 2;
alert(x);
});
const myObject = { name: 'name', surname: 'surname' };
Object.keys(myObject).forEach(key => {
console.log(myObject[key])
})
const list = [{ test: "a", test2: "aa" }, { test: "b", test2: "bb" }]
const res = list.map(l => l.test)