title: add array of keys as property on obj as accumulator by reduce?
body: <p>i have array of keys that i want to add as property with calculated val(not including on code) on empty object like this by reduce:</p>
  
  <pre><code>const f = ['a','b','c'].reduce((obj,key) =&gt; obj[key]='', {})
  </code></pre>
  
  <p>i was expecting the obj is the accumulator {} so i added properties that way? how do i make this work by reduce?</p>
  
  <p>i was expecting and want it to result like this for that code: </p>
  
  <pre><code>{ a:'',  b:'', c:'' }
  </code></pre>
  
  <p>but my code only results to empty string on console. how do i achieve it?</p>