function toBoolean(value) {
    var val = valOrDefault(value, false);

    return isString(val) && val.toLowerCase() === "true" || Number.isInteger(val) && val === 1 || val === true;
}
/**
 * Converts the received value to a boolean
 * @param {*} value
 * @returns {boolean} A boolean equivalent of the received value
 * @memberof STD
 */
Converts the received value to a boolean
@param {*} value
@returns {boolean} A boolean equivalent of the received value
@memberof STD
Converts the received value to a boolean @param { * } value @returns { boolean } A boolean equivalent of the received value @memberof STD
function toBoolean(value) {
    var val = valOrDefault(value, false);
    return isString(val) && val.toLowerCase() === "true" || Number.isInteger(val) && val === 1 || val === true;
}
function toBoolean ( value ) { var val = valOrDefault ( value , false ) ; return isString ( val ) && val . toLowerCase ( ) === "true" || Number . isInteger ( val ) && val === 1 || val === true ; }
Converts the received value to a boolean
 @param {*} value
 @returns {boolean} A boolean equivalent of the received value
 @memberof STD
Converts the received value to a boolean @param { * } value @returns { boolean } A boolean equivalent of the received value @memberof STD