升级工程到Cocos Creator 3.5

This commit is contained in:
dgflash
2022-04-25 14:51:29 +08:00
parent 58de625a87
commit 7861fd34dd
1634 changed files with 310487 additions and 84 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;