mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-03 19:21:11 +00:00
.
This commit is contained in:
parent
9fff29ba6c
commit
00c3b50fca
7278 changed files with 0 additions and 1778943 deletions
node_modules/lodash
15
node_modules/lodash/_arraySample.js
generated
vendored
15
node_modules/lodash/_arraySample.js
generated
vendored
|
@ -1,15 +0,0 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue