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