title: javascript array push error in Safari Browser
body: <p>I got this error </p>
  
  <pre><code>SyntaxError: Unexpected token '}'. Expected a ':' following the property name 'value'.
  (anonymous function)
  </code></pre>
  
  <p>when doing this :</p>
  
  <pre><code>var datas1 = [];
  angular.forEach(data.data, function(value, key) {
              if(value.comfi_type_id == "1" || value.comfi_type_id == "3" || value.comfi_type_id == "4")
                  datas1.push({value})
          })
          $timeout(function() {
              $scope.items = {'data':{'data1':datas1}};
            }, 1000);
  </code></pre>
  
  <p>The code run fine on Chrome, but only Safari appeared to be error. Can anyone enlighten me, what is wrong?</p>
  
  <p><code>Question Update</code></p>
  
  <p>After I doing this</p>
  
  <pre><code>datas1.push({value:value})
  </code></pre>
  
  <p>It is now run fine in Safari browser. But now when I tried on ios device (this is ionic app) the code is not functioning. No data is push inside <code>datas1</code></p>
  
  <p>I thought when everything work on Safari, also work on ios device ?</p>