Skip to content

Create object from array #4093

Answered by alex-frankel
miqm asked this question in Q&A
Aug 20, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

from:

[ 
  {
    name: 'a' 
   }
   ...
]

to:

{
  a: { someProp: ''}
  ... 
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants