Address review comments, linter and build concerns

This commit is contained in:
Pierre-Yves 2022-06-09 15:12:08 +02:00 committed by Pierre-Yves Gérardy
parent 3fd82e6359
commit 665578060e
5 changed files with 224 additions and 208 deletions

View file

@ -99,7 +99,7 @@ module.exports = function(options) {
}
}
function removeChild(child) {
if (child == null || typeof child !== 'object' || !("nodeType" in child)) {
if (child == null || typeof child !== "object" || !("nodeType" in child)) {
throw new TypeError("Failed to execute removeChild, parameter is not of type 'Node'")
}
var index = this.childNodes.indexOf(child)