license import { Pipe , PipeTransform } from '@angular/core' ; @ Pipe ( { name : 'has' , } ) export class HasPipe implements PipeTransform { transform < T > ( list , value ) { return list . has ( value ) ; } }