8000 Tweak `_.sortedIndex` for Chrome optimizations. · lodash/lodash@c2db180 · GitHub
[go: up one dir, main page]

Skip to content

Commit c2db180

Browse files
committed
Tweak _.sortedIndex for Chrome optimizations.
Former-commit-id: d1d9f1bd1ecfd3bcde98aa51423e05e128f6ffd4
1 parent 3223e4f commit c2db180

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lodash.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,8 +1602,7 @@
16021602

16031603
if (callback) {
16041604
if (thisArg) {
1605-
var fn = callback;
1606-
callback = function(value) { return fn.call(thisArg, value); };
1605+
callback = bind(callback, thisArg);
16071606
}
16081607
value = callback(value);
16091608
while (low < high) {

0 commit comments

Comments
 (0)
0