Add unit tests for _.where.

Former-commit-id: 5247bba20d7aa772867e29def99221faea376db1
This commit is contained in:
John-David Dalton
2012-07-29 14:17:34 -07:00
parent 8079fb5bc5
commit c3cd9007d2
2 changed files with 51 additions and 1 deletions

View File

@@ -2198,7 +2198,7 @@
'inLoop':
'for (pass = true, propIndex = 0; propIndex < propsLength; propIndex++) {\n' +
' prop = props[propIndex];\n' +
' if (pass = value[prop] === properties[prop]) break\n' +
' if (!(pass = value[prop] === properties[prop])) break\n' +
'}\n' +
'if (pass) result.push(value)'
});