Recommend: 

```js
contacts.push({
  uid: getUid(entries[i]),
  entry: entries[i]
});

```