Sign in
Log inSign up

How to create nested child objects in Javascript from array?

Veera Venkata Avinash's photo
Veera Venkata Avinash
·Nov 10, 2017

list = [a,b,c] array to below object form using javascript

a:{
    b : {
        c : {
        }
    }
}
Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct