Check out example codes for "creating a new array of objects from existing array of objects lodash". It will help you in understanding the concepts better.

Code Example 1

_.flatMap(names, (nameObj) => _.map(nameObj, (objVal) => { return { name: objVal }; }));

Learn ReactJs, React Native from akashmittal.com