not sure what is wrong with this
const info= getUserInfo('michael').then(response => {
return _.map(response, value => {
return value.Symbol
})
})
Service response is
//console.log(response)
0:{UserId: "michael", Symbol: "ABC"}
1:{UserId: "michael", Symbol: "ABD"}
2:{UserId: "michael", Symbol: "XYZ"}
3:{UserId: "michael", Symbol: "ZYX"}
4:{UserId: "michael", Symbol: "CBA"}
in console.log I'm getting a promise response, which I don't understand why
//console.log(info)
Promise {_bitField: 0, _fulfillmentHandler0: undefined, _rejectionHandler0: undefined, _promise0: undefined, _receiver0: undefined, …}
The returned symbols are in _rejectionHandler0
My desire return is ['ABC', 'ABD', 'XYZ', 'ZYX', 'CBA']