Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
creating a new array of objects from existing array of objects lodash
Masoud Moghaddam
Programming language:
TypeScript
2021-05-04 15:12:16
0
Q:
creating a new array of objects from existing array of objects lodash
mmarkman
Code:
TypeScript
2021-09-19 22:27:09
_.flatMap(names, (nameObj) => _.map(nameObj, (objVal) => { return { name: objVal }; }));
3
Tags
object
array
new
objects
Related
set array of objects in localstorage
lodash merge array of objects without duplicates
New to Communities?
Join the community