Files
NapCatQQ/.pnpm-store/v3/files/d2/b5e696abe589b6213e1befdccf330a46cd382e90a63bbf5d8c45dbc7203dde9c0393993e68465c42d51a2987ad35d0cc2349202a305c89c1d6fa24c8501164
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
357 B
Plaintext

import arraySample from './_arraySample.js';
import values from './values.js';
/**
* The base implementation of `_.sample`.
*
* @private
* @param {Array|Object} collection The collection to sample.
* @returns {*} Returns the random element.
*/
function baseSample(collection) {
return arraySample(values(collection));
}
export default baseSample;