Let\'s say I have an Array properties =[\'foo\', \'bar\']`.
properties =
I want to create and Object like query = {foo:1, bar:1}
query = {foo:1, bar:1}
Currently I\'m do