Skip to content
Snippets Groups Projects
mark-list.pipe.ts 271 B
Newer Older
  • Learn to ignore specific revisions
  • import { Pipe, PipeTransform } from '@angular/core';
    
    @Pipe({
      name: 'markList'
    })
    export class MarkListPipe implements PipeTransform {
    
    rhenck's avatar
    rhenck committed
      transform(markList: Record<string, any>): string[] {
    
        return markList ? markList.map((element: any) => element.type) : [];
      }
    }