Function getBooleanData

Returns the value of the given data attribute as a boolean. Its value is expected to be either blank or "true" (which result in true), or "false" (which results in false).

The name of the attribute must not start with data. It can be in either camelCase or kebab-case, it is converted as needed.