dist/hawtio-utilities.js
function parseBooleanValue(value, defaultValue) {
        if (defaultValue === void 0) { defaultValue = false; }
        if (!angular.isDefined(value) || !value) {
            return defaultValue;
        }
        if (value.constructor === Boolean) {
            return value;
        }
        if (angular.isString(value)) {
            switch (value.toLowerCase()) {
                case "true":
                case "1":
                case "yes":
                    return true;
                default:
                    return false;
            }
        }
        if (angular.isNumber(value)) {
            return value !== 0;
        }
        throw new Error("Can't convert value " + value + " to boolean");
    }
function parseBooleanValue(value, defaultValue) {
        if (defaultValue === void 0) { defaultValue = false; }
        if (!angular.isDefined(value) || !value) {
            return defaultValue;
        }
        if (value.constructor === Boolean) {
            return value;
        }
        if (angular.isString(value)) {
            switch (value.toLowerCase()) {
                case "true":
                case "1":
                case "yes":
                    return true;
                default:
                    return false;
            }
        }
        if (angular.isNumber(value)) {
            return value !== 0;
        }
        throw new Error("Can't convert value " + value + " to boolean");
    }
function parseBooleanValue ( value , defaultValue ) { if ( defaultValue === void 0 ) { defaultValue = false ; } if ( ! angular . isDefined ( value ) || ! value ) { return defaultValue ; } if ( value . constructor === Boolean ) { return value ; } if ( angular . isString ( value ) ) { switch ( value . toLowerCase ( ) ) { case "true" : case "1" : case "yes" : return true ; default : return false ; } } if ( angular . isNumber ( value ) ) { return value !== 0 ; } throw new Error ( "Can't convert value " + value + " to boolean" ) ; }
Ensure whatever value is passed in is converted to a boolean

In the branding module for now as it's needed before bootstrap

@method parseBooleanValue
@for Core
@param {any} value
@param {Boolean} defaultValue default value to use if value is not defined
@return {Boolean}
Ensure whatever value is passed in is converted to a boolean