// Auto Set/Get the ID of a tag element based
export default tag => {
if (tag.id) {
return tag.id;
}
const text = (tag.innerText || tag.textContent || tag.innerHTML);
constref = text.toLowerCase().replace(/\s/g, '-').replace(/[^\d_a-z-]/g, '');
tag.id = ref;
returnref;
};