My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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 : {
        }
    }
}