src/helpers.js
function (name, value, options) {
    if (options) {
        return validator[name](value, options) ? null : (_a = {},
            _a[name] = {
                valid: false
            },
            _a);
    }
    return validator[name](value) ? null : (_b = {},
        _b[name] = {
            valid: false
        },
        _b);
    var _a, _b;
}
function (name, value, options) {
    if (options) {
        return validator[name](value, options) ? null : (_a = {},
            _a[name] = {
                valid: false
            },
            _a);
    }
    return validator[name](value) ? null : (_b = {},
        _b[name] = {
            valid: false
        },
        _b);
    var _a, _b;
}
function ( name , value , options ) { if ( options ) { return validator [ name ] ( value , options ) ? null : ( _a = { } , _a [ name ] = { valid : false } , _a ) ; } return validator [ name ] ( value ) ? null : ( _b = { } , _b [ name ] = { valid : false } , _b ) ; var _a , _b ; }
Wrapper for calling validator js functions

@param {any} name name of the validator to be called e.g isEmail
@param {any} value value passed from the abstract control
@param {any} options optional parameters
@returns
Wrapper for calling validator js functions