mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Use _.createCallback if _.matches is unavailable for the perf test.
This commit is contained in:
@@ -444,10 +444,10 @@
|
||||
var source = { "num": 9 };\
|
||||
\
|
||||
var _findWhere = _.findWhere || _.find,\
|
||||
_match = _.matches && _.matches(source);\
|
||||
_match = (_.matches || _.createCallback || _.noop)(source);\
|
||||
\
|
||||
var lodashFindWhere = lodash.findWhere || lodash.find,\
|
||||
lodashMatch = lodash.matches && lodash.matches(source);\
|
||||
lodashMatch = (lodash.matches || lodash.createCallback || lodash.noop)(source);\
|
||||
}\
|
||||
if (typeof multiArrays != "undefined") {\
|
||||
var twentyValues = belt.shuffle(belt.range(20)),\
|
||||
|
||||
Reference in New Issue
Block a user