title: How to rename object property in javascript?
body: <p>I have got a nested object. I want to rename the object properties.</p>
  
  <pre><code>  {
       0: {value: "can_view"},
       1: {value: "can_create"}
    }
  </code></pre>
  
  <p>My output would be:</p>
  
  <pre><code>  {
       user_can: "can_view",
       user_view: "can_create"
    }
  </code></pre>