This commit is contained in:
Stephen Franceschelli
2019-07-15 13:45:00 -04:00
parent 9ea2679ca7
commit 574f83ab4c
7044 changed files with 1866414 additions and 15 deletions

15
node_modules/lodash/_arraySample.js generated vendored Normal file
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;