var array = ['a','b','c']; var object = {}; array.reduce((o, s) => { return o[s] = {}; }, object); console.log(object); // {"a":{"b":{"c":{}}}}