/**
 * @since Last modified: 2024/03/23 09:31:48
 * @function getAttrBool
 * @description Gets a boolean value from a node attribute.
 * @param {*} value  - The value obtained through the "getAttribute" method.
 * @returns {array} Return a boolean value.
 * @see {@link https://codepen.io/axui/pen/bGJWaMp|demo @ codepen}
 * @example
 * ax.getAttrBool('false');
 * <!--return false-->
 * ax.getAttrBool(null);
 * <!--return false-->
 * ax.getAttrBool('');
 * <!--return true-->
 * ax.getAttrBool('true');
 * <!--return true-->
 */



'use strict';
const getAttrBool = (val:any): boolean => {
    return (val === 'true' || val === '') ? true : false;
}
export default getAttrBool;
