I'm trying to show specific series of specific fields and value inside of the object but it's not working.
var objArray = [
{id:1, photo:true, bol: true }, {id:2, photo: true, bol:true}
];
result = objArray.map((item) => return {id: item.id, photo: item.photo
}) // this doesn't work.. why??
Expectd Output
[
{id:1, photo:true}, {id:2, photo: true}
]