title: How to convert key-value pairs to list of array using `AngularJS`?
body: <p>This is our data:</p>
  
  <pre><code>$scope.arr = {
       "1": "A",
       "2": "B",
       "3": "C",
       "4": "D",
       "5": "E",
       "6": "F",
       "7": "Others",
       "fromDate": {
        "$date": "2015-02-13T20:59:28.947Z"
       }
  }
  </code></pre>
  
  <p>how to convert this data to a list/array format?</p>
  
  <p>I am expecting something like this: (BTW, I want to remove the <code>fromDate</code> also)</p>
  
  <pre><code>$scope.formattedArr = [
      {value: "1",name: "A" },
      {value: "2",name: "B" },
      {value: "3",name: "C" },
      {value: "4",name: "D" },
      {value: "5",name: "E" },
      {value: "6",name: "F" },
      {value: "7",name: "Others" }
  ]
  </code></pre>