Bump to v4.16.4.

This commit is contained in:
John-David Dalton
2016-10-05 19:49:52 -07:00
parent eb1446def5
commit 39e2b943dc
20 changed files with 324 additions and 291 deletions

View File

@@ -1,5 +1,4 @@
var baseClamp = require('./_baseClamp'),
baseRandom = require('./_baseRandom');
var baseRandom = require('./_baseRandom');
/**
* A specialized version of `_.shuffle` which mutates and sets the size of `array`.
@@ -14,7 +13,7 @@ function shuffleSelf(array, size) {
length = array.length,
lastIndex = length - 1;
size = size === undefined ? length : baseClamp(size, 0, length);
size = size === undefined ? length : size;
while (++index < size) {
var rand = baseRandom(index, lastIndex),
value = array[rand];