From 20f1cc4750c1288a9784ed02c74b6f139c3da723 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 22 May 2015 14:22:20 -0400 Subject: [PATCH] style --- underscore.js | 1 - 1 file changed, 1 deletion(-) diff --git a/underscore.js b/underscore.js index 23bd1a408..5df26e053 100644 --- a/underscore.js +++ b/underscore.js @@ -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);