Converting array into object in javascript

I am trying to convert Array into object
example:

I want to convert, below array into

var a = ['a','b','c','d']

Below object

var obj = {'a':{'b':{'c':{'d':'any value'}}}}

Any one had any idea ?