Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed May 22, 2015
1 parent 297b829 commit 20f1cc4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@
if (!isArrayLike(obj)) obj = _.values(obj);
return obj[_.random(obj.length - 1)];
}

var sample = isArrayLike(obj) ? _.clone(obj) : _.values(obj);
var length = getLength(sample);
n = Math.max(Math.min(n, length), 0);
Expand Down

0 comments on commit 20f1cc4

Please sign in to comment.