diff options
Diffstat (limited to 'alarm/node_modules/lodash/_baseSampleSize.js')
-rw-r--r-- | alarm/node_modules/lodash/_baseSampleSize.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/alarm/node_modules/lodash/_baseSampleSize.js b/alarm/node_modules/lodash/_baseSampleSize.js deleted file mode 100644 index 5c90ec5..0000000 --- a/alarm/node_modules/lodash/_baseSampleSize.js +++ /dev/null @@ -1,18 +0,0 @@ -var baseClamp = require('./_baseClamp'), - shuffleSelf = require('./_shuffleSelf'), - values = require('./values'); - -/** - * The base implementation of `_.sampleSize` without param guards. - * - * @private - * @param {Array|Object} collection The collection to sample. - * @param {number} n The number of elements to sample. - * @returns {Array} Returns the random elements. - */ -function baseSampleSize(collection, n) { - var array = values(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); -} - -module.exports = baseSampleSize; |