build/module/lib/checks/validate.js
/**
 * Helper function for validating a named value and providing a default.
 * @hidden
 */
Helper function for validating a named value and providing a default.
@hidden
Helper function for validating a named value and providing a default . @hidden
function validate(name, value, defaultValue, assertFn) {
    if (isDefined(value)) {
        return assertFn(name, value);
    }
    else {
        return defaultValue;
    }
}
function validate ( name , value , defaultValue , assertFn ) { if ( isDefined ( value ) ) { return assertFn ( name , value ) ; } else { return defaultValue ; } }
Helper function for validating a named value and providing a default.
Helper function for validating a named value and providing a default .