var array = [];
for(var item in data){
// this condition is required to prevent moving forward to prototype chain
if(data.hasOwnProperty(item)){
array.push(data[item]);
}
}
this is simple and will do in an immutable way so that your main data not touched but you can create a new mappedData as per your requirement and create a new array.