function stringExcludes(...excludeVals) {
    return ({value, displayName}) => {
        if (isNil(value)) return null;
        const fail = excludeVals.find(s => value.includes(s));
        if (fail) return `${displayName} must not include "${fail}"`;
    };
}
/**
* Validate that a value does not contain specific strings or characters.
*
* @param {...string} excludeVals - one or more strings to exclude
* @returns ConstraintCb
*/
Validate that a value does not contain specific strings or characters.
Validate that a value does not contain specific strings or characters .
function stringExcludes(...excludeVals) {
    return ({value, displayName}) => {
        if (isNil(value)) return null;
        const fail = excludeVals.find(s => value.includes(s));
        if (fail) return `${displayName} must not include "${fail}"`;
    };
}
function stringExcludes ( ... excludeVals ) { return ( { value , displayName } ) => { if ( isNil ( value ) ) return null ; const fail = excludeVals . find ( s => value . includes ( s ) ) ; if ( fail ) return ` ${ displayName } ${ fail } ` ; } ; }
Validate that a value does not contain specific strings or characters.
Validate that a value does not contain specific strings or characters .