function isHookDisabled (opts, hook) {
    if (opts === undefined || opts.nohooks === undefined) {
        return false;
    }
    var disabledHooks = opts.nohooks;
    var length = disabledHooks.length;
    for (var i = 0; i < length; i++) {
        if (hook.match(disabledHooks[i]) !== null) {
            return true;
        }
    }
    return false;
}
function isHookDisabled (opts, hook) {
    if (opts === undefined || opts.nohooks === undefined) {
        return false;
    }
    var disabledHooks = opts.nohooks;
    var length = disabledHooks.length;
    for (var i = 0; i < length; i++) {
        if (hook.match(disabledHooks[i]) !== null) {
            return true;
        }
    }
    return false;
}
function isHookDisabled ( opts , hook ) { if ( opts === undefined || opts . nohooks === undefined ) { return false ; } var disabledHooks = opts . nohooks ; var length = disabledHooks . length ; for ( var i = 0 ; i < length ; i ++ ) { if ( hook . match ( disabledHooks [ i ] ) !== null ) { return true ; } } return false ; }
Checks if the given hook type is disabled at the command line option.
@param {Object} opts - the option object that contains command line options
@param {String} hook - the hook type
@returns {Boolean} return true if the passed hook is disabled.
Checks if the given hook type is disabled at the command line option .