From 79b706fb5c25c171814fd227d7f446d08f787da1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 29 Jul 2014 08:48:04 -0700 Subject: [PATCH] Add parentheses to clarify things. --- lodash.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index e5b420010..ef47add8c 100644 --- a/lodash.js +++ b/lodash.js @@ -2063,7 +2063,7 @@ return (value != +value) ? other != +other // 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 stringClass: @@ -2407,7 +2407,7 @@ while (low < high) { var mid = (low + high) >>> 1, computed = iterator(array[mid]), - setLow = retHighest ? computed <= value : computed < value; + setLow = retHighest ? (computed <= value) : (computed < value); if (hintNum && typeof computed != 'undefined') { computed = +computed; @@ -2915,7 +2915,7 @@ * equality comparisons, else `false`. */ function isStrictComparable(value) { - return value === value && (value === 0 ? (1 / value > 0) : !isObject(value)); + return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value)); } /**