From 4a28dd0e4ab71bb1fdf4d0bf83219326832c8b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B2=8C?= <710898853@qq.com> Date: Tue, 23 Jan 2018 15:35:46 +0800 Subject: [PATCH] Update index.js fix bug --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index babd093..d7f050d 100644 --- a/index.js +++ b/index.js @@ -91,7 +91,7 @@ function diffContents(contents1, contents2, appendFn) { processContents(subSet1, subSet2, appendFn); - if (contents1[0] || contents2[0]) + if (contents1[0] !== undefined || contents2[0] !== undefined) diffContents(contents1, contents2, appendFn); } @@ -133,4 +133,4 @@ function processContents(contents1, contents2, appendFn) { if (result) appendFn(result); } -} \ No newline at end of file +}