projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
lodash
/
_baseSortedIndexBy.js
diff --git
a/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_baseSortedIndexBy.js
b/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_baseSortedIndexBy.js
index bb22e36dcdf620acc215c6d66f025bcbdcd55e2a..c247b377ff5b1a2a6887724d3dc749a5555e5d18 100644
(file)
--- a/
.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_baseSortedIndexBy.js
+++ b/
.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_baseSortedIndexBy.js
@@
-22,11
+22,14
@@
var nativeFloor = Math.floor,
* into `array`.
*/
function baseSortedIndexBy(array, value, iteratee, retHighest) {
* into `array`.
*/
function baseSortedIndexBy(array, value, iteratee, retHighest) {
- value = iteratee(value);
-
var low = 0,
var low = 0,
- high = array == null ? 0 : array.length,
- valIsNaN = value !== value,
+ high = array == null ? 0 : array.length;
+ if (high === 0) {
+ return 0;
+ }
+
+ value = iteratee(value);
+ var valIsNaN = value !== value,
valIsNull = value === null,
valIsSymbol = isSymbol(value),
valIsUndefined = value === undefined;
valIsNull = value === null,
valIsSymbol = isSymbol(value),
valIsUndefined = value === undefined;