import {isBlank} from './lang';
/**
* Test whether the "boolean" attribute of an element
* is `true` or `false`
*
* This is so we can either assign boolean attributes
* as either:
*
* or
*
*
*/
export function attributeIsPresent(value: boolean): boolean {
if (value === true || value === false) {
return value;
}
return !isBlank(value);
}