import { Pipe, PipeTransform } from '@angular/core'; import { NaUtils } from '@ng-arthur-mobile/common'; /** * 判断是否为空 * 为空时返回true * 非空时返回false * * @export * @class NaIsNullOrEmptyPipe * @implements {PipeTransform} */ @Pipe({ name: 'NaIsNullOrEmpty' }) export class NaIsNullOrEmptyPipe implements PipeTransform { transform(value: any): any { return NaUtils.isNullOrEmpty(value); } }