angular 6 read last item in array