g and h are pretty much the functions I’ve been writing when I do vanilla JS projects. I find it really comfy!
I also do a shorthand for ‘addEventListener’ as well, which I find really useful.
Yes, I do something similar except I make g into $ instead to remind myself of the days of jQuery. I have an element wrapper tool in $e because I simply couldn’t think of anything better or mnemonic. Cadey’s h looks far more advanced than my simple one-liner for document.createElement!