angular 6 get last element of array