mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Add parentheses to clarify things.
This commit is contained in:
@@ -2063,7 +2063,7 @@
|
|||||||
return (value != +value)
|
return (value != +value)
|
||||||
? other != +other
|
? other != +other
|
||||||
// but treat `-0` vs. `+0` as not equal
|
// but treat `-0` vs. `+0` as not equal
|
||||||
: (value == 0 ? (1 / value == 1 / other) : value == +other);
|
: (value == 0 ? ((1 / value) == (1 / other)) : value == +other);
|
||||||
|
|
||||||
case regexpClass:
|
case regexpClass:
|
||||||
case stringClass:
|
case stringClass:
|
||||||
@@ -2407,7 +2407,7 @@
|
|||||||
while (low < high) {
|
while (low < high) {
|
||||||
var mid = (low + high) >>> 1,
|
var mid = (low + high) >>> 1,
|
||||||
computed = iterator(array[mid]),
|
computed = iterator(array[mid]),
|
||||||
setLow = retHighest ? computed <= value : computed < value;
|
setLow = retHighest ? (computed <= value) : (computed < value);
|
||||||
|
|
||||||
if (hintNum && typeof computed != 'undefined') {
|
if (hintNum && typeof computed != 'undefined') {
|
||||||
computed = +computed;
|
computed = +computed;
|
||||||
@@ -2915,7 +2915,7 @@
|
|||||||
* equality comparisons, else `false`.
|
* equality comparisons, else `false`.
|
||||||
*/
|
*/
|
||||||
function isStrictComparable(value) {
|
function isStrictComparable(value) {
|
||||||
return value === value && (value === 0 ? (1 / value > 0) : !isObject(value));
|
return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user