getids
Returns an object with all DOM nodes by id. It does not return nodes that have no ID. There is one optional argument, either a DOM node, or the ID for a DOM node. If you do not specify one, it will use document
npm install getids
Why?
Because I end up writing 20 lines of getElementById when I build interfaces.
example
given this html
and this javascript
var getids = var id =
would yield
id = { title : HTMLElement }