Ensure underscore build versions of _.where and _.findWhere align with Underscore 1.5.

Former-commit-id: 49653c65a29c5a9108630a38b80848b2e5596079
This commit is contained in:
John-David Dalton
2013-07-13 10:35:48 -07:00
parent ff0f05a1c1
commit 0a7fc356b6
4 changed files with 35 additions and 35 deletions

View File

@@ -2431,7 +2431,7 @@
*/
function where(collection, properties, first) {
return (first && isEmpty(properties))
? null
? undefined
: (first ? find : filter)(collection, properties);
}