import { PropertyValidator } from "../PropertyValidator" ; import { isIterable , isIterableEmtpy } from "../../shared/" ; export class implements PropertyValidator < any > export class IsEmptyValidator implements PropertyValidator < any > { isValid ( input ) { return input === "" || input === null || input === undefined || this . isEmptyCollection ( input ) ; } private isEmptyCollection ( input ) { if ( isIterable ( input ) ) { return isIterableEmtpy ( input ) ; } return false ; } }