mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +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 source = { "num": 9 };\
|
||||||
\
|
\
|
||||||
var _findWhere = _.findWhere || _.find,\
|
var _findWhere = _.findWhere || _.find,\
|
||||||
_match = _.matches && _.matches(source);\
|
_match = (_.matches || _.createCallback || _.noop)(source);\
|
||||||
\
|
\
|
||||||
var lodashFindWhere = lodash.findWhere || lodash.find,\
|
var lodashFindWhere = lodash.findWhere || lodash.find,\
|
||||||
lodashMatch = lodash.matches && lodash.matches(source);\
|
lodashMatch = (lodash.matches || lodash.createCallback || lodash.noop)(source);\
|
||||||
}\
|
}\
|
||||||
if (typeof multiArrays != "undefined") {\
|
if (typeof multiArrays != "undefined") {\
|
||||||
var twentyValues = belt.shuffle(belt.range(20)),\
|
var twentyValues = belt.shuffle(belt.range(20)),\
|
||||||
|
|||||||
Reference in New Issue
Block a user