Skip to content

Commit

Permalink
adding parens for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed May 23, 2012
1 parent 47e7dbb commit 94f10d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
var initial = iterator ? _.map(array, iterator) : array;
var results = [];
_.reduce(initial, function(memo, value, index) {
if (isSorted ? _.last(memo) !== value || !memo.length : !_.include(memo, value)) {
if (isSorted ? (_.last(memo) !== value || !memo.length) : !_.include(memo, value)) {
memo.push(value);
results.push(array[index]);
}
Expand Down

0 comments on commit 94f10d8

Please sign in to comment.