angular/firebase format retrieved data from firebase into array
问题 hello guys i have a problem to format my firebase-data into array this is my service where im retrieving data from firebase filename: subcategory.service.ts export class SubcategoryService { subcategoryRef: AngularFireList<any> = null; constructor(private db: AngularFireDatabase) { this.subcategoryRef = db.list("/subCategory"); } getSubCategoriesById(inp_subCatid: string): Observable<any[]> { return this.subcategoryRef.snapshotChanges().pipe( take(1), map(changes => changes.map(c => ({ key: c