This is one possible example of object-based prototypal inheritance,
using hasOwnProperty
to break the prototype chain.
const _createElement = _proto => {
let _el = Document.createElement()
for (var prop of _proto) {
if (Object.hasOwnProperty(prop)) {
_el[prop] = _proto[prop]
}
}
}