I have an array which looks like this:
const array = {FSES: {empId: '322344BD', address:'North'}, DSER:{empId: '322344BD', address:'West'}}
I want to be able to get rid of FSES and DSER. This is my desired array:
const desiredArray = [{empId: '322344BD', address:'North'},{empId: '322344BD', address:'West'}]
This is what I have tried but it is not working.
const newArray = [].concat(...array.map(o => o.address))
I hope you can help me. Thanks in advance.