import { Pipe , PipeTransform } from '@angular/core' ; import { filter , reverse } from 'lodash' ; @ Pipe ( { name : 'reverse' } ) export class ReversePipe implements PipeTransform { transform ( value , args ? ) { value = filter ( value , [ 'dismissed' , false ] ) ; return reverse ( value ) ; } }