Cleanup _.isEqual and make _.where of an empty array match all arrays similar to empty objects matching all objects.

This commit is contained in:
John-David Dalton
2014-07-02 09:37:40 -07:00
parent 61eeaa0496
commit 9ba1ddc2dd
2 changed files with 87 additions and 93 deletions

View File

@@ -10663,7 +10663,7 @@
deepEqual(actual, [collection[1]]);
actual = _.where(collection, { 'a': [] });
deepEqual(actual, []);
deepEqual(actual, collection);
actual = _.where(collection, { 'a': ['b', 'd'] });
deepEqual(actual, []);