Better optionality-checking
This commit is contained in:
parent
ad0c151278
commit
9f26792e40
2
route.js
2
route.js
|
@ -631,7 +631,7 @@ function Routing(exports) {
|
||||||
|
|
||||||
// TODO: better name for this
|
// TODO: better name for this
|
||||||
function matchMatcher(o1, o2, seed) {
|
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);
|
walk(o1, o2);
|
||||||
return acc;
|
return acc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue