From 9f26792e405ff68900243dcba962da893836eee6 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 26 May 2014 05:50:45 -0400 Subject: [PATCH] Better optionality-checking --- route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route.js b/route.js index 12a243f..462d35d 100644 --- a/route.js +++ b/route.js @@ -631,7 +631,7 @@ function Routing(exports) { // TODO: better name for this function matchMatcher(o1, o2, seed) { - var acc = seed || {}; // will be modified in place + var acc = typeof seed === 'undefined' ? {} : seed; // will be modified in place walk(o1, o2); return acc;