Katochimoto/xblocks

View on GitHub
src/dom/removeChild.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @param {HTMLElement} element
 * @returns {HTMLElement}
 */
export default function (element) {
    if (element.parentNode) {
        return element.parentNode.removeChild(element);
    }
}