From 0f0efffe216e171a2fda098a0696ba673a96459f Mon Sep 17 00:00:00 2001 From: David Johnson Date: Mon, 26 Mar 2018 04:06:43 +0000 Subject: [PATCH] Check for undefined in hasKeys --- jsbits/diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsbits/diff.js b/jsbits/diff.js index 3fa7eb0e..dc443404 100644 --- a/jsbits/diff.js +++ b/jsbits/diff.js @@ -139,7 +139,7 @@ function diffCss(cCss, nCss, node) { } function hasKeys(ns, cs) { - return ns.length > 0 && cs.length > 0 && ns[0].key !== null && cs[0].key !== null; + return ns.length > 0 && cs.length > 0 && ns[0].key != null && cs[0].key != null; } function diffChildren(cs, ns, parent, doc) {