import { PipeTransform , Pipe , NgModule } from '@angular/core' ; import { isNil } from '../utils/utils' ; @ Pipe ( { name : 'isNil' , } ) export class IsNilPipe implements PipeTransform { transform ( value ) { return isNil ( value ) ; } } @ NgModule ( { declarations : [ IsNilPipe ] , exports : [ IsNilPipe ] , } ) export class NgIsNilPipeModule { }