I have:
function _(x){
return document.getElementById(x);
}
I would like to do the same think for getElementByClassName
, but aside from "$" are there any other special characters I can use? I was thinking about may å or some accented character, but I don't know if it will work or not.
Is there any downside to doing something like this?
function å(x){
return document.getElementByClassName(x);
}