Add feature to merge specific response properties into result, with optional array transformation
dimitri-koenig opened this issue · comments
Dimitri König commented
Basic use case: get rid of this repeating code:
response.data = response.data.Projektbearbeiter ? response.data.Projektbearbeiter : [];
if (_.isPlainObject(response.data)) {
response.data = [
response.data
];
}