Changed references to _.include to _.includes.

This commit is contained in:
sfinktah
2015-10-17 03:01:51 +11:00
committed by John-David Dalton
parent 689b292c24
commit 6ae58e74c7

View File

@@ -1086,31 +1086,31 @@
suites.push( suites.push(
Benchmark.Suite('`_.includes` searching an array') Benchmark.Suite('`_.includes` searching an array')
.add(buildName, '\ .add(buildName, '\
lodash.include(numbers, limit - 1)' lodash.includes(numbers, limit - 1)'
) )
.add(otherName, '\ .add(otherName, '\
_.include(numbers, limit - 1)' _.includes(numbers, limit - 1)'
) )
); );
suites.push( suites.push(
Benchmark.Suite('`_.includes` searching an object') Benchmark.Suite('`_.includes` searching an object')
.add(buildName, '\ .add(buildName, '\
lodash.include(object, limit - 1)' lodash.includes(object, limit - 1)'
) )
.add(otherName, '\ .add(otherName, '\
_.include(object, limit - 1)' _.includes(object, limit - 1)'
) )
); );
if (lodash.include('ab', 'ab') && _.include('ab', 'ab')) { if (lodash.includes('ab', 'ab') && _.includes('ab', 'ab')) {
suites.push( suites.push(
Benchmark.Suite('`_.includes` searching a string') Benchmark.Suite('`_.includes` searching a string')
.add(buildName, '\ .add(buildName, '\
lodash.include(strNumbers, "," + (limit - 1))' lodash.includes(strNumbers, "," + (limit - 1))'
) )
.add(otherName, '\ .add(otherName, '\
_.include(strNumbers, "," + (limit - 1))' _.includes(strNumbers, "," + (limit - 1))'
) )
); );
} }