part-element-type

Get DOM Element type, for node or the browser.

Part Element Type

Get DOM Element type, for node or the browser.

node.js:

$ npm install part-element-type

browser:

$ component install part/element-type
var type = require('part-element-type');
type(document.querySelector('h1')) // 1 

MIT