Convert object to array in Angular 6