mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Changed references to _.include to _.includes.
This commit is contained in:
committed by
John-David Dalton
parent
689b292c24
commit
6ae58e74c7
14
perf/perf.js
14
perf/perf.js
@@ -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))'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user