function StringEquals(input1, input2) {
    var matchCase = function (x) {
        if (x) {
            return x.toLowerCase();
        }
        return "";
    };
    var stringCompare = function (string1, string2) {
        return matchCase(string1) === matchCase(string2);
    };
    if (lodash_1.isString(input1)) {
        return stringCompare(input1, input2);
    }
    else if (lodash_1.isArray(input1)) {
        var results = lodash_1.map(input1, function (x) {
            return stringCompare(x, input2);
        });
        return lodash_1.some(results, function (x) { return lodash_1.isBoolean(x) && x === true; });
    }
    ;
}
/**
 * Checks that two strings are equal, ignoring case.
 */
Checks that two strings are equal, ignoring case.
Checks that two strings are equal ignoring case .
function StringEquals(input1, input2) {
    var matchCase = function (x) {
        if (x) {
            return x.toLowerCase();
        }
        return "";
    };
    var stringCompare = function (string1, string2) {
        return matchCase(string1) === matchCase(string2);
    };
    if (lodash_1.isString(input1)) {
        return stringCompare(input1, input2);
    }
    else if (lodash_1.isArray(input1)) {
        var results = lodash_1.map(input1, function (x) {
            return stringCompare(x, input2);
        });
        return lodash_1.some(results, function (x) { return lodash_1.isBoolean(x) && x === true; });
    }
    ;
}
function StringEquals ( input1 , input2 ) { var matchCase = function ( x ) { if ( x ) { return x . toLowerCase ( ) ; } return "" ; } ; var stringCompare = function ( string1 , string2 ) { return matchCase ( string1 ) === matchCase ( string2 ) ; } ; if ( lodash_1 . isString ( input1 ) ) { return stringCompare ( input1 , input2 ) ; } else if ( lodash_1 . isArray ( input1 ) ) { var results = lodash_1 . map ( input1 , function ( x ) { return stringCompare ( x , input2 ) ; } ) ; return lodash_1 . some ( results , function ( x ) { return lodash_1 . isBoolean ( x ) && x === true ; } ) ; } ; }
Checks that two strings are equal, ignoring case.
Checks that two strings are equal ignoring case .