I have the following array.
numbers = ["1","2"]
I want to convert this array into the following object
numberList = {"1" : [], "2" : []}
I tried like following. but it does not work. I want to pass the number as a variable.
numbers.map( function(number) {
return {number : []};
})