diff --git a/src/htmx.js b/src/htmx.js index 2ec4e1755..6263a9a6c 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -1138,10 +1138,7 @@ var htmx = (function() { * @returns {Node[]} */ function toNodeArray(node) { - if (node) { - return [node] - } - return [] + return node ? [node] : [] } /**