title: Create a unique object identifier with javascript
body: <p>The objects I use on the client side need a unique ID. My array of objects is very small, commonly 4 items, not more.</p>
  
  <p>I use this:</p>
  
  <pre><code>export class MyItem {   
      uniqueObjectIdentifier: number;
      constructor(obj) {    
          this.uniqueObjectIdentifier = Math.random();
      }
  }
  </code></pre>
  
  <p>Is there something maybe javascript or angular internal that I can access instead of the handcrafted property?</p>