From 81cd99005291b78453fa74dd835aa37d7ae00880 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 12 Apr 2014 01:02:58 -0700 Subject: [PATCH] Remove `source` initialization from `matches`. --- lodash.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index ecfd950da..94851f413 100644 --- a/lodash.js +++ b/lodash.js @@ -7828,11 +7828,10 @@ * // => { 'name': 'barney', 'age': 36 } */ function matches(source) { - source || (source = {}); var props = keys(source), propsLength = props.length, key = props[0], - value = source[key]; + value = propsLength && source[key]; // fast path the common case of providing an object with a single // property containing a primitive value