Add node_modules until bundler is added

This commit is contained in:
Joel Male
2020-08-26 09:57:08 +10:00
parent 600d4f061c
commit e4e62ab7e8
5789 changed files with 1707160 additions and 10 deletions
+15
View File
@@ -0,0 +1,15 @@
var baseRandom = require('./_baseRandom');
/**
* A specialized version of `_.sample` for arrays.
*
* @private
* @param {Array} array The array to sample.
* @returns {*} Returns the random element.
*/
function arraySample(array) {
var length = array.length;
return length ? array[baseRandom(0, length - 1)] : undefined;
}
module.exports = arraySample;