mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Optimize _.contains for arrays.
Former-commit-id: 050743f77e7047f86d5b14b97d35846c9d2e749c
This commit is contained in:
@@ -562,6 +562,7 @@
|
||||
|
||||
(function() {
|
||||
_.forEach({
|
||||
'an `arguments` object': arguments,
|
||||
'an array': [1, 2, 3, 1, 2, 3],
|
||||
'an object': { 'a': 1, 'b': 2, 'c': 3, 'd': 1, 'e': 2, 'f': 3 },
|
||||
'a string': '123123'
|
||||
@@ -598,7 +599,7 @@
|
||||
strictEqual(_.contains(collection, 'd'), false);
|
||||
});
|
||||
});
|
||||
}());
|
||||
}(1, 2, 3, 1, 2, 3));
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user