I mean this:
document.getElementById('Id')
With This:
function getById(ID){
return document.getElementById('Id')
}
getById('Id')
I am developing a project it requires using thousands of these... I'm using this with other DOM manipulation methods . Does it have any consequences?