aggiunti componenti bower/node

This commit is contained in:
Samuele E. Locatelli
2016-10-03 10:53:40 +02:00
parent 2b20f8fd94
commit 77f390460f
2590 changed files with 343529 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
var copyArray = require('./_copyArray'),
shuffleSelf = require('./_shuffleSelf');
/**
* A specialized version of `_.sampleSize` for arrays.
*
* @private
* @param {Array} array The array to sample.
* @param {number} n The number of elements to sample.
* @returns {Array} Returns the random elements.
*/
function arraySampleSize(array, n) {
return shuffleSelf(copyArray(array), n);
}
module.exports = arraySampleSize;