title: How to retrieve last element id of array in Angular 2
body: <p>I am trying to get id of last element of my array. </p>
  
  <p>This is how I am fetching last element of my array</p>
  
  <pre><code>let last = this.Array[this.Array.length-1];
  console.log(last);
  </code></pre>
  
  <p>Here is the console of last element of array-  </p>
  
  <pre><code>Object {id: 48, title: "I'm used to this"}
   title: "I'm used to this"
   id:  48
  __proto__:  Object
  </code></pre>
  
  <p>Here is the list on which I have looked already-</p>
  
  <p><a href="https://stackoverflow.com/questions/31955930/how-to-retrieve-the-clicked-elementid-in-angularjs">How to retrieve the clicked ElementId in angularjs?</a><br>
  <a href="https://stackoverflow.com/questions/5789902/how-to-get-the-objects-id">How to get the object&#39;s id?</a><br>
  <a href="https://stackoverflow.com/questions/15921699/how-to-get-the-id-name-in-html-for-any-object">how to get the id name in html for any object</a> and many more but I could not.</p>
  
  <p>I just wanted to access <code>id : 48</code>, can any one help me to do so.<br>
  Thanks In Advance.</p>