Remove the unnecessary branch in _.shuffle()

The non-zero case works properly for 0 as well.
This commit is contained in:
Jakub Wieczorek
2012-04-03 15:23:38 +02:00
parent 73e6e87858
commit a40001a358
2 changed files with 7 additions and 7 deletions

View File

@@ -67,4 +67,8 @@
return _.range(1000);
});
JSLitmus.test('_.shuffle()', function() {
return _.shuffle(numbers);
});
})();