Get last item of array - Angular/JSON
<p>I'm retrieving data from my API using Angular and adding the returned data to <code>$scope.addresses</code> I can get the first item in the <code>array</code> returned and assign it to a <code>var firstAddress = $scope.addresses[0]</code> how can I get the last item in the <code>array</code> returned?</p>